blob: 60c682020270cbf05d017ab8854ab5b44c52c817 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
project(SystemSub NONE)
FetchContent_Declare(
SubSub1
SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/SubSub1
SYSTEM
)
FetchContent_Declare(
SubSub2
SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/SubSub2
)
FetchContent_MakeAvailable(SubSub1 SubSub2)
add_library(bar STATIC bar.cpp)
add_library(foo STATIC foo.cpp)
set_target_properties(foo PROPERTIES SYSTEM OFF)
add_executable(zot zot.cpp)
|