diff options
author | crupest <crupest@outlook.com> | 2022-05-10 19:18:32 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-05-10 19:18:32 +0800 |
commit | 891bf38d8580b83cdf6ae315cb2650dae7d79006 (patch) | |
tree | 3e7714df65147489c88dfc00a656339b29097d90 /CMakeLists.txt | |
parent | b846a16e42b30418fe91ba3f06771fad57100624 (diff) | |
download | cru-891bf38d8580b83cdf6ae315cb2650dae7d79006.tar.gz cru-891bf38d8580b83cdf6ae315cb2650dae7d79006.tar.bz2 cru-891bf38d8580b83cdf6ae315cb2650dae7d79006.zip |
...
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a56119a3..48e6b21d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,22 +1,13 @@ cmake_minimum_required(VERSION 3.21) -if(NOT CMAKE_TOOLCHAIN_FILE) - message("CMAKE_TOOLCHAIN_FILE not set. Begin to find vcpkg toolchain file.") - if(DEFINED ENV{VCPKG_INSTALLATION_ROOT}) - message("VCPKG_INSTALLATION_ROOT environment variable is set. Use that vcpkg.") - set(CMAKE_TOOLCHAIN_FILE $ENV{VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake - CACHE STRING "Vcpkg toolchain file") - else() - message("VCPKG_INSTALLATION_ROOT environment variable is NOT set. Use local vcpkg.") - set(CMAKE_TOOLCHAIN_FILE vcpkg/scripts/buildsystems/vcpkg.cmake - CACHE STRING "Vcpkg toolchain file") - endif() -endif() - set(CMAKE_CXX_STANDARD 20) project(cru) +add_subdirectory(lib/Catch2) +add_subdirectory(lib/double-conversion) +add_subdirectory(lib/GSL) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) |