Commit 8548eae 1 parent eee4727 commit 8548eae Copy full SHA for 8548eae
File tree 1 file changed +5
-4
lines changed
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)
3
3
set (CMAKE_CXX_STANDARD 17)
4
4
set (CMAKE_INCLUDE_CURRENT_DIR ON )
5
5
6
+ find_package (Boost 1.54 REQUIRED COMPONENTS headers REQUIRED)
6
7
7
8
add_library (prlearn SHARED ${HEADER_FILES} MLearning.cpp SimpleMLearning.cpp RefinementTree.cpp structs.cpp)
8
9
add_library (prlearnStatic STATIC ${HEADER_FILES} MLearning.cpp SimpleMLearning.cpp RefinementTree.cpp structs.cpp)
9
10
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 } )
12
13
set_target_properties (prlearnStatic PROPERTIES OUTPUT_NAME prlearn)
13
14
14
15
15
- install (TARGETS prlearn
16
+ install (TARGETS prlearn
16
17
RUNTIME DESTINATION bin
17
- LIBRARY DESTINATION lib
18
+ LIBRARY DESTINATION lib
18
19
ARCHIVE DESTINATION lib)
19
20
install (FILES MLearning.h
20
21
propts.h
You can’t perform that action at this time.
0 commit comments