aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-07-01 16:01:04 +0200
committerHampusM <hampus@hampusmat.com>2022-07-01 16:01:04 +0200
commit7307815e99a79dac42f2a9c06b0fe6171ea11ba0 (patch)
treead41ee819dc87fc2653caf720fa7d1df30c0caeb /lib
parent2bff8c999edde11270ecaf6fbd2d24f54d0e360b (diff)
refactor: use ranges
Diffstat (limited to 'lib')
-rw-r--r--lib/CMakeLists.txt8
-rw-r--r--lib/range-v3/CMakeLists.txt3
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index eca9503..baf8680 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -40,6 +40,14 @@ FetchContent_Declare(
add_subdirectory(backward)
+FetchContent_Declare(
+ range-v3
+ GIT_REPOSITORY "https://github.com/ericniebler/range-v3"
+ GIT_TAG 0.12.0
+)
+
+add_subdirectory(range-v3)
+
if(test)
FetchContent_Declare(
catch2
diff --git a/lib/range-v3/CMakeLists.txt b/lib/range-v3/CMakeLists.txt
new file mode 100644
index 0000000..62596c9
--- /dev/null
+++ b/lib/range-v3/CMakeLists.txt
@@ -0,0 +1,3 @@
+message(STATUS "Fetching range-v3...")
+
+FetchContent_MakeAvailable(range-v3)