mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 07:16:53 -06:00
39 lines
670 B
CMake
39 lines
670 B
CMake
cmake_minimum_required (VERSION 2.8)
|
|
|
|
project (cafProjectDataModel)
|
|
|
|
# Qt
|
|
find_package ( Qt4 COMPONENTS QtCore QtGui )
|
|
include (${QT_USE_FILE})
|
|
|
|
set( PROJECT_FILES
|
|
cafFactory.h
|
|
cafOmpMutex.h
|
|
cafPdmDocument.cpp
|
|
cafPdmDocument.h
|
|
cafPdmObjectGroup.cpp
|
|
cafPdmObjectGroup.h
|
|
cafPdmObject.h
|
|
cafPdmField.h
|
|
)
|
|
|
|
add_library( ${PROJECT_NAME}
|
|
${PROJECT_FILES}
|
|
)
|
|
|
|
target_link_libraries ( ${PROJECT_NAME}
|
|
cafPdmUiCore
|
|
cafPdmXml
|
|
)
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
if (MSVC)
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/W4 /wd4100 /wd4127")
|
|
endif()
|
|
|
|
source_group("" FILES ${PROJECT_FILES})
|