17 lines
393 B
CMake
Raw Normal View History

2022-11-16 20:14:03 +01:00
project(SystemSub NONE)
add_subdirectory(SubSub1 SYSTEM)
add_subdirectory(SubSub2)
add_library(bar STATIC bar.cpp)
2023-07-02 19:51:09 +02:00
if(CMAKE_Fortran_COMPILER)
target_sources(bar PRIVATE zap.f)
endif()
# Verify CMAKE_INCLUDE_SYSTEM_FLAG_<LANG> works
target_link_libraries(bar PRIVATE subsub1bar)
2022-11-16 20:14:03 +01:00
add_library(foo STATIC foo.cpp)
set_target_properties(foo PROPERTIES SYSTEM OFF)
add_executable(zot zot.cpp)