#742 NRLib now uses Boost from CMake

This commit is contained in:
Magne Sjaastad
2016-05-27 12:48:56 +02:00
parent bffad18f9c
commit 54c98ca9f8
26 changed files with 68 additions and 7236 deletions

View File

@@ -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}
)