eigen/demos/opengl/CMakeLists.txt

21 lines
515 B
CMake
Raw Normal View History

2008-09-09 01:08:27 +08:00
find_package(Qt4 REQUIRED)
find_package(OpenGL REQUIRED)
set(QT_USE_QTOPENGL TRUE)
include(${QT_USE_FILE})
2008-09-09 01:08:27 +08:00
set(CMAKE_INCLUDE_CURRENT_DIR ON)
2008-09-09 01:08:27 +08:00
include_directories( ${QT_INCLUDE_DIR} )
set(quaternion_demo_SRCS gpuhelper.cpp icosphere.cpp camera.cpp trackball.cpp quaternion_demo.cpp)
2008-09-09 01:08:27 +08:00
qt4_automoc(${quaternion_demo_SRCS})
2008-09-09 01:08:27 +08:00
add_executable(quaternion_demo ${quaternion_demo_SRCS})
2008-09-09 01:08:27 +08:00
target_link_libraries(quaternion_demo
${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY}
${QT_QTOPENGL_LIBRARY} ${OPENGL_LIBRARIES} )