From 7307815e99a79dac42f2a9c06b0fe6171ea11ba0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 1 Jul 2022 16:01:04 +0200 Subject: refactor: use ranges --- lib/CMakeLists.txt | 8 ++++++++ lib/range-v3/CMakeLists.txt | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 lib/range-v3/CMakeLists.txt (limited to 'lib') 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) -- cgit v1.2.3-18-g5258