include_directories(
${CMAKE_BINARY_DIR}
${TOP_SRC_DIR}/src)
+
+option(UseExternalBoost "Use external boost" OFF)
if(UseExternalBoost)
message(STATUS "Searching for boost")
find_package(Boost COMPONENTS signals regex)
+ if(Boost_FOUND)
+ message(STATUS "Boost found")
+ message(STATUS "Boost-libs = ${Boost_LIBRARIES}")
+ else()
+ message(FATAL_ERROR "Boost not found" ${Boost_ERROR_REASON})
+ endif()
else()
message(STATUS "----- Using internal boost. To build with installed version use -DUseExternalBoost:BOOL=ON")
-endif()
-
-if(Boost_FOUND)
- message(STATUS "Boost found")
- message(STATUS "Boost-libs = ${Boost_LIBRARIES}")
-else()
- message(STATUS "Boost not found" ${Boost_ERROR_REASON})
add_definitions(-DBOOST_USER_CONFIG="<config.h>")
include_directories(${TOP_SRC_DIR}/boost)
add_subdirectory(boost)