2021-08-27 13:32:31 +00:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2020-11-23 18:59:11 +00:00
|
|
|
|
2021-08-03 22:10:53 +00:00
|
|
|
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
|
|
vcpkg
|
|
|
|
GIT_REPOSITORY https://github.com/microsoft/vcpkg
|
|
|
|
GIT_TAG 1257354a3ab0bebd8abe95281ca561537853578c
|
|
|
|
)
|
2021-08-02 13:46:49 +00:00
|
|
|
|
2021-08-03 22:10:53 +00:00
|
|
|
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
|
|
|
|
FetchContent_GetProperties(vcpkg
|
|
|
|
POPULATED vcpkg_POPULATED
|
|
|
|
SOURCE_DIR vcpkg_SOURCE_DIR)
|
|
|
|
if(NOT vcpkg_POPULATED)
|
|
|
|
FetchContent_Populate(vcpkg)
|
|
|
|
endif()
|
2021-06-22 08:40:17 +00:00
|
|
|
|
2021-08-03 22:10:53 +00:00
|
|
|
set(CMAKE_TOOLCHAIN_FILE
|
|
|
|
"${vcpkg_SOURCE_DIR}/scripts/buildsystems/vcpkg.cmake")
|
|
|
|
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/toolchain.cmake")
|
|
|
|
endif()
|
2021-06-22 10:07:52 +00:00
|
|
|
|
2021-09-10 10:19:12 +00:00
|
|
|
project(pacman LANGUAGES CXX)
|
2021-06-22 10:07:52 +00:00
|
|
|
|
2021-09-10 09:42:46 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
2021-06-22 08:40:17 +00:00
|
|
|
|
2021-09-10 13:55:42 +00:00
|
|
|
enable_testing()
|
2021-07-08 08:17:05 +00:00
|
|
|
add_subdirectory(scaling-lib)
|
2021-05-10 12:58:00 +00:00
|
|
|
add_subdirectory(lib)
|
|
|
|
add_subdirectory(src)
|
|
|
|
add_subdirectory(test)
|