-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (25 loc) · 934 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#===============================================================================
set(LIB_NAME mcts)
set(INC_FILES
inc/mcts/MCTSAgent.h
inc/mcts/MCTSLoop.h
inc/mcts/MCTSTree.h
inc/mcts/MCTSSelectionFunction.h
inc/mcts/IAction.h
inc/mcts/IRewardFunction.h
inc/mcts/IState.h)
set(SRC_FILES
src/MCTSAgent.cpp
src/MCTSLoop.cpp
src/MCTSTree.cpp
src/MCTSSelectionFunction.cpp)
#===============================================================================
add_library(${LIB_NAME})
target_sources(${LIB_NAME} PRIVATE ${SRC_FILES})
target_link_libraries(${LIB_NAME} PRIVATE nlohmann_json::nlohmann_json)
#===============================================================================
if(ENABLE_TEST)
add_subdirectory(tst)
endif()
#===============================================================================
prj_component_install(${LIB_NAME})