aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt17
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)