2016-09-05 08:23:24 -05:00
|
|
|
cmake_minimum_required (VERSION 2.8)
|
|
|
|
|
|
|
|
project (custom-opm-flowdiagnostics)
|
|
|
|
|
2019-09-16 14:23:11 -05:00
|
|
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-deprecated-declarations")
|
|
|
|
endif()
|
|
|
|
|
2016-09-05 08:23:24 -05:00
|
|
|
include_directories(
|
|
|
|
opm-flowdiagnostics
|
|
|
|
)
|
|
|
|
|
|
|
|
include (opm-flowdiagnostics/CMakeLists_files.cmake)
|
|
|
|
|
|
|
|
set(project_source_files
|
|
|
|
${MAIN_SOURCE_FILES}
|
|
|
|
${PUBLIC_HEADER_FILES}
|
|
|
|
)
|
|
|
|
|
|
|
|
foreach (file ${project_source_files} )
|
|
|
|
list(APPEND project_source_files_complete_path "opm-flowdiagnostics/${file}" )
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
add_library(${PROJECT_NAME}
|
|
|
|
${project_source_files_complete_path}
|
|
|
|
)
|
|
|
|
|
2017-08-17 06:39:54 -05:00
|
|
|
if (MSVC)
|
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4267")
|
2019-11-01 04:00:07 -05:00
|
|
|
else()
|
|
|
|
set_target_properties(custom-opm-flowdiagnostics PROPERTIES COMPILE_FLAGS "-Wno-deprecated -Wno-deprecated-declarations")
|
2017-08-17 06:39:54 -05:00
|
|
|
endif()
|
2018-02-27 13:00:56 -06:00
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/opm-flowdiagnostics
|
|
|
|
)
|