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.

28 lines
696 B

  1. find_package(Qt4)
  2. find_package(OpenGL)
  3. if(QT4_FOUND AND OPENGL_FOUND)
  4. set(QT_USE_QTOPENGL TRUE)
  5. include(${QT_USE_FILE})
  6. set(CMAKE_INCLUDE_CURRENT_DIR ON)
  7. include_directories( ${QT_INCLUDE_DIR} )
  8. set(quaternion_demo_SRCS gpuhelper.cpp icosphere.cpp camera.cpp trackball.cpp quaternion_demo.cpp)
  9. qt4_automoc(${quaternion_demo_SRCS})
  10. add_executable(quaternion_demo ${quaternion_demo_SRCS})
  11. add_dependencies(demos quaternion_demo)
  12. target_link_libraries(quaternion_demo
  13. ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY}
  14. ${QT_QTOPENGL_LIBRARY} ${OPENGL_LIBRARIES} )
  15. else()
  16. message(STATUS "OpenGL demo disabled because Qt4 and/or OpenGL have not been found.")
  17. endif()