forked from PazerOP/tf2_bot_detector
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakeLists.txt
34 lines (24 loc) · 1.01 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
25
26
27
28
29
30
31
32
33
cmake_minimum_required(VERSION 3.17)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# ADD_DEFINITIONS(-DUNICODE)
# ADD_DEFINITIONS(-D_UNICODE)
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/submodules/vcpkg/scripts/buildsystems/vcpkg.cmake" CACHE STRING "Vcpkg toolchain file")
option(TF2BD_ENABLE_DISCORD_INTEGRATION "Enable discord integration" on)
option(TF2BD_ENABLE_TESTS "Enable test compilation" off)
include(cmake/init-preproject.cmake)
project(tf2_bot_detector)
include(cmake/init-postproject.cmake)
# apparent bug in VS 16.9.1 makes error messages unclickable because of wrong paths
if (MSVC)
add_compile_options(/FC)
endif()
set(MH_STUFF_BUILD_SHARED_LIBS ON)
add_subdirectory(submodules/mh_stuff)
set_warning_level(3)
add_subdirectory(submodules/ValveFileVDF)
add_subdirectory(submodules/SourceRCON)
add_subdirectory(submodules/glad2)
# add_subdirectory(submodules/imgui_desktop)
add_subdirectory(tf2_bot_detector_common)
add_subdirectory(tf2_bot_detector_renderer)
add_subdirectory(tf2_bot_detector)