-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
22 lines (16 loc) · 768 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
22 lines (16 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required (VERSION 3.8)
project("RLGymPPO_CPP_Example")
add_executable(RLGymPPO_CPP_Example "./ExampleMain.cpp" "./RLBotClient.cpp" "./RLBotClient.h")
# Set C++ version to 20
set_target_properties(RLGymPPO_CPP_Example PROPERTIES LINKER_LANGUAGE CXX)
set_target_properties(RLGymPPO_CPP_Example PROPERTIES CXX_STANDARD 20)
# Make sure RLGymPPO_CPP is going to build in the same directory as us
# Otherwise, we won't be able to import it at runtime
set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}")
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}")
# Include RLGymSim_PPO
add_subdirectory(RLGymPPO_CPP)
target_link_libraries(RLGymPPO_CPP_Example RLGymPPO_CPP)
# Include RLBot
add_subdirectory(RLBotCPP)
target_link_libraries(RLGymPPO_CPP_Example RLBotCPP)