-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathCMakeLists.txt
43 lines (37 loc) · 1.16 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright (c) Darrell Wright
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#
# Official repository: https://github.com/beached/daw_json_link
#
# This prevents tests running on dependencies
option( DAW_ENABLE_TESTING "Build unit tests" OFF )
if( DAW_ENABLE_TESTING )
set( DAW_ENABLE_TESTING OFF )
set( DAW_EXTERN_USE_LATEST ON )
endif()
include( FetchContent )
if( DAW_EXTERN_USE_LATEST )
# Use the latest header_libraries and not release
FetchContent_Declare(
daw_header_libraries
GIT_REPOSITORY https://github.com/beached/header_libraries.git
GIT_TAG v2
)
message( STATUS "Using latest header_libraries" )
else()
FetchContent_Declare(
daw_header_libraries
GIT_REPOSITORY https://github.com/beached/header_libraries.git
GIT_SHALLOW 1
GIT_TAG master
)
endif()
FetchContent_Declare(
daw_utf_range
GIT_REPOSITORY https://github.com/beached/utf_range.git
GIT_SHALLOW 1
GIT_TAG v2.2.5
)
FetchContent_MakeAvailable( daw_header_libraries daw_utf_range )