ResInsight/ThirdParty/NRLib/CMakeLists.txt
rubenthoms 1941a1f3d3
Boost and Eigen to vcpkg (#6817)
* Moved boost subset installation to vcpkg.

* Moved Eigen to vcpkg.

Added packages to vcpkg-response files.
Removed unnecessary include_directories() calls.


Removed comments.

* Use target_link_library instead of boost_libraries

Co-authored-by: Magne Sjaastad <magne.sjaastad@ceetronsolutions.com>
2020-10-25 09:22:19 +01:00

47 lines
934 B
CMake

cmake_minimum_required (VERSION 2.8.12)
project (NRLib)
if (CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-deprecated-declarations")
endif()
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}
STATIC
${NRLIB_IOTOOLS_SRC}
${NRLIB_WELL_SRC}
)
if (MSVC)
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4996")
endif()
#add_subdirectory(well_UnitTests)
target_include_directories(${PROJECT_NAME}
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/nrlib/well
)
find_package(Boost REQUIRED filesystem system)
target_link_libraries(${PROJECT_NAME}
Boost::filesystem
)