-
Notifications
You must be signed in to change notification settings - Fork 54
/
CMakeLists.txt
47 lines (39 loc) · 1.23 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
cmake_minimum_required(VERSION 3.6 FATAL_ERROR)
project(DrafterProjects)
include(DefaultBuildType.cmake)
message(STATUS "Testing dependencies ${BUILD_TESTING_DEPENDENCIES}.")
set(CMAKE_PREFIX_PATH "/prefix")
set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY TRUE)
set(as_subproject
apib
apib-parser
Sundown
cmdline
Drafter
Catch2
dtl
BoostContainer
MPark.Variant
pegtl)
macro(find_package)
if(NOT "${ARGV0}" IN_LIST as_subproject)
_find_package(${ARGV})
endif()
endmacro()
# add external dependencies living in `ext`
option(PEGTL_BUILD_TESTS OFF)
add_subdirectory(packages/sundown EXCLUDE_FROM_ALL)
add_subdirectory(packages/cmdline EXCLUDE_FROM_ALL)
add_subdirectory(packages/boost EXCLUDE_FROM_ALL)
add_subdirectory(packages/variant EXCLUDE_FROM_ALL)
add_subdirectory(packages/PEGTL EXCLUDE_FROM_ALL)
message(STATUS "Setting up tests for production...")
add_subdirectory(packages/Catch EXCLUDE_FROM_ALL)
add_subdirectory(packages/dtl EXCLUDE_FROM_ALL)
enable_testing()
include(CTest)
include(packages/Catch/contrib/Catch.cmake)
# targets developed in this super project
add_subdirectory(packages/apib EXCLUDE_FROM_ALL)
add_subdirectory(packages/apib-parser EXCLUDE_FROM_ALL)
add_subdirectory(packages/drafter)