File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3,18 +3,19 @@ project(PRLearn C CXX)
33set (CMAKE_CXX_STANDARD 17)
44set (CMAKE_INCLUDE_CURRENT_DIR ON )
55
6+ find_package (Boost 1.54 REQUIRED COMPONENTS headers REQUIRED)
67
78add_library (prlearn SHARED ${HEADER_FILES} MLearning.cpp SimpleMLearning.cpp RefinementTree.cpp structs.cpp)
89add_library (prlearnStatic STATIC ${HEADER_FILES} MLearning.cpp SimpleMLearning.cpp RefinementTree.cpp structs.cpp)
910
10- target_include_directories (prlearn PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
11- target_include_directories (prlearnStatic PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
11+ target_include_directories (prlearn PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${Boost_INCLUDE_DIRS } )
12+ target_include_directories (prlearnStatic PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${Boost_INCLUDE_DIRS } )
1213set_target_properties (prlearnStatic PROPERTIES OUTPUT_NAME prlearn)
1314
1415
15- install (TARGETS prlearn
16+ install (TARGETS prlearn
1617 RUNTIME DESTINATION bin
17- LIBRARY DESTINATION lib
18+ LIBRARY DESTINATION lib
1819 ARCHIVE DESTINATION lib)
1920install (FILES MLearning.h
2021 propts.h
You can’t perform that action at this time.
0 commit comments