Home | History | Annotate | Download | only in opengl
      1 find_package(Qt4 REQUIRED)
      2 find_package(OpenGL REQUIRED)
      3 
      4 set(QT_USE_QTOPENGL TRUE)
      5 include(${QT_USE_FILE})
      6 
      7 set(CMAKE_INCLUDE_CURRENT_DIR ON)
      8 
      9 include_directories( ${QT_INCLUDE_DIR} )
     10 
     11 set(quaternion_demo_SRCS  gpuhelper.cpp icosphere.cpp camera.cpp trackball.cpp quaternion_demo.cpp)
     12 
     13 qt4_automoc(${quaternion_demo_SRCS})
     14 
     15 add_executable(quaternion_demo ${quaternion_demo_SRCS})
     16 add_dependencies(demos quaternion_demo)
     17 
     18 target_link_libraries(quaternion_demo
     19   ${QT_QTCORE_LIBRARY}    ${QT_QTGUI_LIBRARY}
     20   ${QT_QTOPENGL_LIBRARY}  ${OPENGL_LIBRARIES} )
     21