Debian Codegraph @

coeurl/tests/CMakeLists.txt

raw
1 cmake_minimum_required(VERSION 3.12...3.13)
2
3
4 set(
5 CMAKE_TOOLCHAIN_FILE
6 "${CMAKE_CURRENT_LIST_DIR}/../toolchain.cmake"
7 CACHE
8 FILEPATH
9 "Default toolchain"
10 )
11 set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard")
12 set(CMAKE_CXX_STANDARD_REQUIRED ON CACHE BOOL "Require C++ standard to be supported")
13 set(CMAKE_POSITION_INDEPENDENT_CODE ON CACHE BOOL "compile as PIC by default")
14
15 option(HUNTER_ENABLED "Enable Hunter package manager" OFF)
16 include("../cmake/HunterGate.cmake")
17 HunterGate(
18 URL "https://github.com/cpp-pm/hunter/archive/v0.26.6.tar.gz"
19 SHA1 "e70c29f878f5d5f5cdf1b9ccd628fb872e8624a8"
20 LOCAL
21 )
22
23 project(coeurl-cmake-buildtest)
24
25 include(FetchContent)
26 FetchContent_Declare(
27 coeurl
28 GIT_REPOSITORY "${CMAKE_CURRENT_LIST_DIR}/.."
29 GIT_TAG HEAD
30 )
31 FetchContent_MakeAvailable(coeurl)