2018-02-27 11:49:24 -06:00
|
|
|
cmake_minimum_required (VERSION 2.8.12)
|
2016-12-08 07:55:01 -06:00
|
|
|
|
2016-12-09 09:25:43 -06:00
|
|
|
project (custom-opm-flowdiag-app)
|
2016-12-08 07:55:01 -06:00
|
|
|
|
|
|
|
include_directories(
|
|
|
|
../custom-opm-flowdiagnostics/opm-flowdiagnostics
|
|
|
|
opm-flowdiagnostics-applications
|
|
|
|
)
|
|
|
|
|
|
|
|
include (opm-flowdiagnostics-applications/CMakeLists_files.cmake)
|
|
|
|
|
|
|
|
set(project_source_files
|
|
|
|
${MAIN_SOURCE_FILES}
|
|
|
|
${PUBLIC_HEADER_FILES}
|
|
|
|
)
|
|
|
|
|
|
|
|
foreach (file ${project_source_files} )
|
|
|
|
list(APPEND project_source_files_complete_path1 "opm-flowdiagnostics-applications/${file}" )
|
|
|
|
endforeach()
|
|
|
|
|
2017-04-24 14:56:04 -05:00
|
|
|
add_definitions(-DHAVE_ERT_ECL_TYPE_H)
|
|
|
|
|
2016-12-09 09:25:43 -06:00
|
|
|
add_library(custom-opm-flowdiag-app
|
2016-12-08 07:55:01 -06:00
|
|
|
${project_source_files_complete_path1}
|
|
|
|
)
|
|
|
|
|
2018-02-27 11:49:24 -06:00
|
|
|
target_link_libraries(custom-opm-flowdiag-app
|
|
|
|
ecl
|
|
|
|
boost-Subset
|
|
|
|
)
|
2017-08-17 06:39:54 -05:00
|
|
|
|
|
|
|
if (MSVC)
|
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4190 /wd4267")
|
|
|
|
endif()
|
2018-02-27 13:00:56 -06:00
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/opm-flowdiagnostics-applications
|
|
|
|
)
|