mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
* Use horizontalAdvance * Remove unused code * Hide some warnings from Qt code * Remove message for _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING * Use CMP0077 NEW * Move roff libraries to folder Thirdparty * avoid operator()== * Remove cmake_minimum_required and set version to 3.15
38 lines
937 B
CMake
38 lines
937 B
CMake
cmake_minimum_required (VERSION 2.8.12)
|
|
|
|
project (custom-opm-flowdiagnostics)
|
|
|
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-deprecated-declarations")
|
|
endif()
|
|
|
|
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}
|
|
)
|
|
|
|
if (MSVC)
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4267")
|
|
else()
|
|
set_target_properties(custom-opm-flowdiagnostics PROPERTIES COMPILE_FLAGS "-Wno-deprecated -Wno-deprecated-declarations")
|
|
endif()
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/opm-flowdiagnostics
|
|
)
|