mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
146c9e4494
stable trackball for the fly navigation mode, and started to put some GUI elements...
21 lines
515 B
CMake
21 lines
515 B
CMake
|
|
find_package(Qt4 REQUIRED)
|
|
find_package(OpenGL REQUIRED)
|
|
|
|
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})
|
|
|
|
target_link_libraries(quaternion_demo
|
|
${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY}
|
|
${QT_QTOPENGL_LIBRARY} ${OPENGL_LIBRARIES} )
|