2015-09-11 09:32:38 -05:00
|
|
|
project (NRLib)
|
|
|
|
|
2019-09-16 02:50:21 -05:00
|
|
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-deprecated-declarations")
|
|
|
|
endif()
|
|
|
|
|
2015-09-11 09:32:38 -05:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/nrlib
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/nrlib/well
|
|
|
|
)
|
|
|
|
|
|
|
|
file ( GLOB NRLIB_IOTOOLS_SRC
|
|
|
|
nrlib/iotools/*.hpp
|
|
|
|
nrlib/iotools/*.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
file ( GLOB NRLIB_WELL_SRC
|
|
|
|
nrlib/well/*.hpp
|
|
|
|
nrlib/well/*.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library( ${PROJECT_NAME}
|
2016-06-05 11:45:53 -05:00
|
|
|
STATIC
|
2015-09-11 09:32:38 -05:00
|
|
|
${NRLIB_IOTOOLS_SRC}
|
|
|
|
${NRLIB_WELL_SRC}
|
|
|
|
)
|
2015-09-14 02:02:27 -05:00
|
|
|
|
2017-08-18 03:01:40 -05:00
|
|
|
if (MSVC)
|
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4996")
|
|
|
|
endif()
|
|
|
|
|
2018-11-02 05:32:39 -05:00
|
|
|
#add_subdirectory(well_UnitTests)
|
2015-09-14 02:02:27 -05:00
|
|
|
|
2018-02-27 11:49:24 -06:00
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/nrlib/well
|
|
|
|
)
|
|
|
|
|
2020-10-25 03:22:19 -05:00
|
|
|
find_package(Boost REQUIRED filesystem system)
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
Boost::filesystem
|
2018-02-27 11:49:24 -06:00
|
|
|
)
|