-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (36 loc) · 2.07 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
34
35
36
37
38
39
40
41
42
43
44
45
46
project(koth-pandemic)
#**************************************************************************************************
# General cMake settings **************************************************************************
cmake_minimum_required(VERSION 3.5)
#**************************************************************************************************
# Find Package ************************************************************************************
find_package(cxxopts REQUIRED)
find_package(spdlog CONFIG REQUIRED)
find_package(fmt CONFIG REQUIRED)
#**************************************************************************************************
# Include *****************************************************************************************
include_directories(${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/bots)
# get_cmake_property(_variableNames VARIABLES)
# list (SORT _variableNames)
# foreach (_variableName ${_variableNames})
# message(STATUS "${_variableName}=${${_variableName}}")
# endforeach()
#**************************************************************************************************
# Set compiler ************************************************************************************
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
add_compile_options(/std:c++latest /Oy /utf-8)
else()
add_compile_options(-std=c++2a -fPIC -O3 -fno-omit-frame-pointer)
endif()
#**************************************************************************************************
# Set variable ************************************************************************************
file(GLOB BOTS bots/*.cpp)
SET(SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp
)
#**************************************************************************************************
# Make configuration ******************************************************************************
add_executable(koth-pandemic ${SOURCES} ${BOTS})
target_link_libraries(koth-pandemic fmt::fmt spdlog::spdlog)