diff --git a/owlps-positioner/CMakeLists.txt b/owlps-positioner/CMakeLists.txt index cac7efc..52f19f4 100644 --- a/owlps-positioner/CMakeLists.txt +++ b/owlps-positioner/CMakeLists.txt @@ -1,4 +1,11 @@ -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") +# Make sure boost libraries are installed +find_package(Boost 1.42.0 COMPONENTS program_options) +if (NOT Boost_FOUND) + message(WARNING + "OwlPS Positioner dependency missing: Boost") + return() +endif() +include_directories(${Boost_INCLUDE_DIRS}) set(EXTRA_LIBS ${EXTRA_LIBS} ${Boost_LIBRARIES} m) @@ -9,6 +16,9 @@ if ("${GNU_SYSTEM}" OR ${CMAKE_SYSTEM_NAME} STREQUAL Linux) set(EXTRA_LIBS ${EXTRA_LIBS} rt) endif() +# Enable C++11 +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") + set(OWLPS_POSITIONER_SRC_FILES src/accesspoint.cc src/accesspointsreadercsv.cc