2012-05-18 02:45:23 -05:00
|
|
|
cmake_minimum_required (VERSION 2.8)
|
|
|
|
|
|
|
|
project (cafViewer)
|
|
|
|
|
2015-07-29 07:19:43 -05:00
|
|
|
# Qt
|
|
|
|
find_package ( Qt4 COMPONENTS QtCore QtGui QtMain )
|
|
|
|
include (${QT_USE_FILE})
|
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
include_directories(
|
2015-07-29 07:19:43 -05:00
|
|
|
${LibCore_SOURCE_DIR}
|
|
|
|
${LibGeometry_SOURCE_DIR}
|
|
|
|
${LibViewing_SOURCE_DIR}
|
|
|
|
${LibRender_SOURCE_DIR}
|
|
|
|
${LibGuiQt_SOURCE_DIR}
|
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
${cafAnimControl_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
# These headers need to go through Qt's MOC compiler
|
|
|
|
set( QOBJECT_HEADERS
|
|
|
|
cafViewer.h
|
|
|
|
)
|
|
|
|
|
2012-09-18 08:21:04 -05:00
|
|
|
if ( (${CMAKE_VERSION} VERSION_LESS 2.8.6) OR (NOT CMAKE_AUTOMOC) )
|
|
|
|
qt4_wrap_cpp( MOC_FILES_CPP ${QOBJECT_HEADERS} )
|
|
|
|
endif()
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
add_library( ${PROJECT_NAME}
|
|
|
|
cafCadNavigation.cpp
|
2013-08-30 08:35:28 -05:00
|
|
|
cafCadNavigation.h
|
2012-05-18 02:45:23 -05:00
|
|
|
cafCeetronNavigation.cpp
|
2013-08-30 08:35:28 -05:00
|
|
|
cafCeetronNavigation.h
|
2013-10-19 17:41:25 -05:00
|
|
|
cafCeetronPlusNavigation.cpp
|
|
|
|
cafCeetronPlusNavigation.h
|
2015-12-09 08:17:04 -06:00
|
|
|
cafTrackBallBasedNavigation.cpp
|
|
|
|
cafTrackBallBasedNavigation.h
|
2013-08-30 08:35:28 -05:00
|
|
|
cafNavigationPolicy.cpp
|
|
|
|
cafNavigationPolicy.h
|
2012-05-18 02:45:23 -05:00
|
|
|
cafOpenGLWidget.cpp
|
2013-08-30 08:35:28 -05:00
|
|
|
cafOpenGLWidget.h
|
|
|
|
cafViewer.cpp
|
|
|
|
cafViewer.h
|
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
${MOC_FILES_CPP}
|
|
|
|
)
|