From faa141ba3ed057480ba067f4b5aecb37b15fa491 Mon Sep 17 00:00:00 2001 From: niklas Date: Mon, 24 Aug 2020 08:23:25 +0200 Subject: Fixed CMakeLists.txt (added boost) --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 06de721..5bd1b0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,8 @@ IF (CMAKE_VERSION VERSION_LESS "3.7.0") set(CMAKE_INCLUDE_CURRENT_DIR ON) ENDIF () +find_package(Boost REQUIRED COMPONENTS system) + add_executable(${PROJECT_NAME} # Headers include/AnnotationTypes.hpp @@ -28,9 +30,14 @@ target_include_directories(${PROJECT_NAME} $ PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src + ${Boost_INCLUDE_DIRS} ) -target_link_libraries(${PROJECT_NAME} PUBLIC +target_link_directories(${PROJECT_NAME} PRIVATE + ${Boost_LIBRARY_DIRS}) + +target_link_libraries(${PROJECT_NAME} PRIVATE + ${Boost_LIBRARIES} pthread ) -- cgit v1.2.3-54-g00ecf