You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
385 B
21 lines
385 B
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)
|