Skip to content

Commit

Permalink
added missing boost check, credits to Marius Mikucionis for the patch
Browse files Browse the repository at this point in the history
  • Loading branch information
petergjoel committed Sep 30, 2020
1 parent eee4727 commit 8548eae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ project(PRLearn C CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

find_package(Boost 1.54 REQUIRED COMPONENTS headers REQUIRED)

add_library(prlearn SHARED ${HEADER_FILES} MLearning.cpp SimpleMLearning.cpp RefinementTree.cpp structs.cpp)
add_library(prlearnStatic STATIC ${HEADER_FILES} MLearning.cpp SimpleMLearning.cpp RefinementTree.cpp structs.cpp)

target_include_directories (prlearn PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories (prlearnStatic PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories(prlearn PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${Boost_INCLUDE_DIRS})
target_include_directories(prlearnStatic PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${Boost_INCLUDE_DIRS})
set_target_properties(prlearnStatic PROPERTIES OUTPUT_NAME prlearn)


install(TARGETS prlearn
install(TARGETS prlearn
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
install (FILES MLearning.h
propts.h
Expand Down

0 comments on commit 8548eae

Please sign in to comment.