-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (36 loc) · 1.33 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
43
44
45
46
47
# Debug
#function(dump_cmake_vars)
# get_cmake_property(_variableNames VARIABLES)
# foreach (_variableName ${_variableNames})
# message(STATUS "${_variableName}=${${_variableName}}"
# )
# endforeach()
#endfunction()
cmake_minimum_required(VERSION 3.14.0)
set(CMAKE_CXX_STANDARD 11)
option(BUILD_KARGMAP_TESTS "Build the KArgMap testing tree." OFF)
option(BUILD_ALL_TESTS "Build the KArgMap testing tree." OFF)
#==============================================================================
include(FetchContent)
FetchContent_Declare(
microcbor
#GIT_REPOSITORY file:///Users/glenne/git/microcbor
GIT_REPOSITORY https://github.com/glenne/microcbor.git
GIT_TAG main
)
FetchContent_MakeAvailable(microcbor)
#==============================================================================
# Set the main project name. For Visual Studio, this will create a Solution
# file.
project(KArgMap)
enable_testing()
#==============================================================================
add_library(KArgMap INTERFACE)
target_include_directories(KArgMap INTERFACE include/)
add_library(KArgMapCbor INTERFACE)
target_link_libraries(KArgMapCbor INTERFACE KArgMap microcbor)
if (BUILD_ALL_TESTS OR BUILD_KARGMAP_TESTS)
add_subdirectory(test)
endif()
# Debug
#dump_cmake_vars()