-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
25 lines (19 loc) · 898 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
cmake_minimum_required(VERSION 3.20.3)
# TODO: Consider moving project to sc2 directory so we can do all this there
# Configure vcpkg (requires vcpkg submodule)
option(USE_VCPKG "Use vcpkg for library dependencies" OFF)
option(GIT_SUBMODULE "Update submodules during build" OFF)
if(USE_VCPKG)
# Optionally update vcpkg submodule (mainly for use by CI)
include(sc2/build/cmake/UpdateSubmodule.cmake)
update_submodule("${CMAKE_CURRENT_LIST_DIR}/vcpkg")
# Configure vcpkg
include(sc2/build/cmake/ConfigureVcpkg.cmake)
configure_vcpkg("${CMAKE_CURRENT_LIST_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake")
endif()
project(uqm VERSION 0.8.0
LANGUAGES C)
# Targets can "link" this "library" to inherit project options.
add_library(project_options INTERFACE)
target_compile_features(project_options INTERFACE c_std_99) # Require _at least_ C99
add_subdirectory(sc2)