ResInsight/Fwk/AppFwk/cafCommand/CMakeLists.txt
2018-09-27 21:36:52 +02:00

78 lines
1.8 KiB
CMake

cmake_minimum_required (VERSION 2.8.12)
# Qt
find_package ( Qt4 COMPONENTS QtCore QtGui QtMain )
include (${QT_USE_FILE})
project (cafCommand)
# These headers need to go through Qt's MOC compiler
set( QOBJECT_HEADERS
cafCmdFeature.h
cafCmdFeatureManager.h
)
if ( NOT CMAKE_AUTOMOC )
qt4_wrap_cpp( MOC_FILES_CPP ${QOBJECT_HEADERS} )
endif()
set( PROJECT_FILES
cafCmdExecCommandManager.cpp
cafCmdExecCommandManager.h
cafCmdExecuteCommand.h
cafCmdUiCommandSystemImpl.h
cafCmdUiCommandSystemImpl.cpp
# Default features
defaultfeatures/cafCmdAddItemExec.cpp
defaultfeatures/cafCmdAddItemExec.h
defaultfeatures/cafCmdAddItemExecData.cpp
defaultfeatures/cafCmdAddItemExecData.h
defaultfeatures/cafCmdAddItemFeature.cpp
defaultfeatures/cafCmdAddItemFeature.h
defaultfeatures/cafCmdDeleteItemExec.cpp
defaultfeatures/cafCmdDeleteItemExec.h
defaultfeatures/cafCmdDeleteItemExecData.cpp
defaultfeatures/cafCmdDeleteItemExecData.h
defaultfeatures/cafCmdDeleteItemFeature.cpp
defaultfeatures/cafCmdDeleteItemFeature.h
cafCmdFieldChangeExec.cpp
cafCmdFieldChangeExec.h
cafCmdSelectionHelper.cpp
cafCmdSelectionHelper.h
cafCmdSelectionChangeExec.cpp
cafCmdSelectionChangeExec.h
cafCmdFeature.cpp
cafCmdFeature.h
cafCmdFeatureManager.cpp
cafCmdFeatureManager.h
cafCmdFeatureMenuBuilder.cpp
cafCmdFeatureMenuBuilder.h
)
add_library( ${PROJECT_NAME}
${PROJECT_FILES}
${MOC_FILES_CPP}
)
target_include_directories(${PROJECT_NAME}
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)
target_link_libraries ( ${PROJECT_NAME}
cafProjectDataModel
)
if (MSVC)
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/W4 /wd4100 /wd4127")
endif()
source_group("" FILES ${PROJECT_FILES})