-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCMakeLists.txt
36 lines (24 loc) · 941 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
# The MIT License (MIT)
#
# Copyright (c) 2017-2022 Alexander Kurbatov
cmake_minimum_required(VERSION 3.15)
project(Suvorov)
set(PROJECT_AUTHOR alkurbatov)
set(PROJECT_VERSION_MAJOR 0)
set(PROJECT_VERSION_MINOR 2)
set(PROJECT_VERSION_PATCH 0)
# Specify output directories.
set(EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/bin")
# Use statically linked runtime
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
# Build with c++14 support, required by sc2api.
set(CMAKE_CXX_STANDARD 14)
# Dont build examples in the sc2api submodule.
set(BUILD_API_EXAMPLES OFF CACHE INTERNAL "" FORCE)
# Dont build tests in the sc2api submodule.
set(BUILD_API_TESTS OFF CACHE INTERNAL "" FORCE)
# Dont build sc2renderer in the sc2api submodule.
set(BUILD_SC2_RENDERER OFF CACHE INTERNAL "" FORCE)
option(BUILD_FOR_LADDER "Create build for the AIArena ladder" OFF)
add_subdirectory("contrib/cpp-sc2")
add_subdirectory("src")