mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#742 NRLib now uses Boost from CMake
This commit is contained in:
12
ThirdParty/NRLib/CMakeLists.txt
vendored
12
ThirdParty/NRLib/CMakeLists.txt
vendored
@@ -1,12 +1,18 @@
|
||||
cmake_minimum_required (VERSION 2.8)
|
||||
|
||||
ADD_DEFINITIONS("-DBOOST_ALL_NO_LIB")
|
||||
|
||||
project (NRLib)
|
||||
|
||||
#add_definitions(-DBOOST_FILESYSTEM_VERSION=3)
|
||||
#find_package(Boost 1.44.0 COMPONENTS filesystem date_time system regex REQUIRED)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/boost
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/nrlib
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/nrlib/well
|
||||
${Boost_INCLUDE_DIRS}
|
||||
|
||||
)
|
||||
|
||||
file ( GLOB NRLIB_IOTOOLS_SRC
|
||||
@@ -20,10 +26,6 @@ file ( GLOB NRLIB_WELL_SRC
|
||||
)
|
||||
|
||||
add_library( ${PROJECT_NAME}
|
||||
boost/filesystem/operations.cpp
|
||||
boost/filesystem/path.cpp
|
||||
boost/filesystem/portability.cpp
|
||||
boost/system/error_code.cpp
|
||||
${NRLIB_IOTOOLS_SRC}
|
||||
${NRLIB_WELL_SRC}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user