aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 52b78a2..f5d6b44 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,15 @@
cmake_minimum_required(VERSION 3.21)
-add_subdirectory(discount/cmake)
+
+include(FetchContent)
+FetchContent_Declare(
+ discount
+ GIT_REPOSITORY "https://github.com/Orc/discount"
+ GIT_TAG "main"
+ SOURCE_DIR "discount"
+)
+FetchContent_MakeAvailable(discount)
+
+add_subdirectory(${discount_SOURCE_DIR}/cmake)
project(msg C)