-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
24 lines (21 loc) · 1.13 KB
/
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
cmake_minimum_required(VERSION 3.10)
add_subdirectory(dqnet)
add_subdirectory(game)
add_subdirectory(tb)
# NOTE: Each library/object will have an identifier and that identifier will then
# be used to link the final executable, i.e. target_link_libraries(ProjectName LibraryName)
add_library(AXIS_LIB STATIC ${CMAKE_SOURCE_DIR}/src/axis_lib.cpp)
target_include_directories(AXIS_LIB PUBLIC ${CMAKE_SOURCE_DIR}/include)
target_include_directories(AXIS_LIB PUBLIC ${VIVADO_INCLUDE_DIRS})
add_library(PONG STATIC ${CMAKE_SOURCE_DIR}/src/pong.cpp)
target_include_directories(PONG PUBLIC ${CMAKE_SOURCE_DIR}/include)
target_include_directories(PONG PUBLIC ${VIVADO_INCLUDE_DIRS})
target_include_directories(PONG PUBLIC ${OpenCv_INCLUDE_DIRS})
target_link_libraries(PONG GAME)
target_link_libraries(PONG DQNET)
add_library(PONGBOT STATIC ${CMAKE_SOURCE_DIR}/src/pongbot.cpp)
target_include_directories(PONGBOT PUBLIC ${CMAKE_SOURCE_DIR}/include)
target_include_directories(PONGBOT PUBLIC ${VIVADO_INCLUDE_DIRS})
target_include_directories(PONGBOT PUBLIC ${OpenCv_INCLUDE_DIRS})
target_link_libraries(PONGBOT ${OpenCv_LIBS})
target_link_libraries(PONGBOT PONG)