mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-03 12:10:57 -06:00
8f92dfd0c0
Refactored cad and ceetron plus nav to use the common base
47 lines
957 B
CMake
47 lines
957 B
CMake
cmake_minimum_required (VERSION 2.8)
|
|
|
|
project (cafViewer)
|
|
|
|
# Qt
|
|
find_package ( Qt4 COMPONENTS QtCore QtGui QtMain )
|
|
include (${QT_USE_FILE})
|
|
|
|
include_directories(
|
|
${LibCore_SOURCE_DIR}
|
|
${LibGeometry_SOURCE_DIR}
|
|
${LibViewing_SOURCE_DIR}
|
|
${LibRender_SOURCE_DIR}
|
|
${LibGuiQt_SOURCE_DIR}
|
|
|
|
${cafAnimControl_SOURCE_DIR}
|
|
)
|
|
|
|
# These headers need to go through Qt's MOC compiler
|
|
set( QOBJECT_HEADERS
|
|
cafViewer.h
|
|
)
|
|
|
|
if ( (${CMAKE_VERSION} VERSION_LESS 2.8.6) OR (NOT CMAKE_AUTOMOC) )
|
|
qt4_wrap_cpp( MOC_FILES_CPP ${QOBJECT_HEADERS} )
|
|
endif()
|
|
|
|
|
|
add_library( ${PROJECT_NAME}
|
|
cafCadNavigation.cpp
|
|
cafCadNavigation.h
|
|
cafCeetronNavigation.cpp
|
|
cafCeetronNavigation.h
|
|
cafCeetronPlusNavigation.cpp
|
|
cafCeetronPlusNavigation.h
|
|
cafTrackBallBasedNavigation.cpp
|
|
cafTrackBallBasedNavigation.h
|
|
cafNavigationPolicy.cpp
|
|
cafNavigationPolicy.h
|
|
cafOpenGLWidget.cpp
|
|
cafOpenGLWidget.h
|
|
cafViewer.cpp
|
|
cafViewer.h
|
|
|
|
${MOC_FILES_CPP}
|
|
)
|