You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
554 B

  1. find_package(Qt4 REQUIRED)
  2. find_package(OpenGL REQUIRED)
  3. set(QT_USE_QTOPENGL TRUE)
  4. include(${QT_USE_FILE})
  5. set(CMAKE_INCLUDE_CURRENT_DIR ON)
  6. include_directories( ${QT_INCLUDE_DIR} )
  7. set(quaternion_demo_SRCS gpuhelper.cpp icosphere.cpp camera.cpp trackball.cpp quaternion_demo.cpp)
  8. qt4_automoc(${quaternion_demo_SRCS})
  9. add_executable(quaternion_demo ${quaternion_demo_SRCS})
  10. add_dependencies(demos quaternion_demo)
  11. target_link_libraries(quaternion_demo
  12. ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY}
  13. ${QT_QTOPENGL_LIBRARY} ${OPENGL_LIBRARIES} )