-
Notifications
You must be signed in to change notification settings - Fork 77
/
CMakeLists.txt
37 lines (31 loc) · 911 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
28
29
30
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
project(libtorch-yolov3-deepsot)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# For profiler on Ubuntu
if (CMAKE_BUILD_TYPE STREQUAL Debug AND NOT MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0")
endif ()
# Output directory structure
set(OUTPUT_DIR "result")
set(TARGETS_DIR_NAME "targets")
set(TRAJ_TXT_NAME "trajectories.txt")
set(SNAPSHOTS_DIR_NAME "snapshots")
set(VIDEO_NAME "compressed.flv")
configure_file(
"${PROJECT_SOURCE_DIR}/config.h.in"
"${PROJECT_BINARY_DIR}/config.h"
)
# GCC need to link against stdc++fs
if(MSVC)
set(STDCXXFS "")
else()
set(STDCXXFS "stdc++fs")
endif()
# .exe and .dll
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
add_subdirectory(detection)
add_subdirectory(tracking)
add_subdirectory(processing)
add_subdirectory(GUI)