diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-18 12:42:15 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-02 15:12:04 +0100 |
commit | 44861dcbfeee041223c4aac1ee075e92fa4daa01 (patch) | |
tree | 6dfdfd9637846a7aedd71ace97d7d2ad366496d7 /eigen/demos/opengl/CMakeLists.txt | |
parent | f3fe458b9e0a29a99a39d47d9a76dc18964b6fec (diff) |
update
Diffstat (limited to 'eigen/demos/opengl/CMakeLists.txt')
-rw-r--r-- | eigen/demos/opengl/CMakeLists.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/eigen/demos/opengl/CMakeLists.txt b/eigen/demos/opengl/CMakeLists.txt new file mode 100644 index 0000000..299aa44 --- /dev/null +++ b/eigen/demos/opengl/CMakeLists.txt @@ -0,0 +1,28 @@ +find_package(Qt4) +find_package(OpenGL) + +if(QT4_FOUND AND OPENGL_FOUND) + + set(QT_USE_QTOPENGL TRUE) + include(${QT_USE_FILE}) + + set(CMAKE_INCLUDE_CURRENT_DIR ON) + + include_directories( ${QT_INCLUDE_DIR} ) + + set(quaternion_demo_SRCS gpuhelper.cpp icosphere.cpp camera.cpp trackball.cpp quaternion_demo.cpp) + + qt4_automoc(${quaternion_demo_SRCS}) + + add_executable(quaternion_demo ${quaternion_demo_SRCS}) + add_dependencies(demos quaternion_demo) + + target_link_libraries(quaternion_demo + ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} + ${QT_QTOPENGL_LIBRARY} ${OPENGL_LIBRARIES} ) + +else() + + message(STATUS "OpenGL demo disabled because Qt4 and/or OpenGL have not been found.") + +endif()
\ No newline at end of file |