1 cmake_minimum_required(VERSION 3.24)
2 project(cxx_modules_deep_chain CXX)
4 include("${CMAKE_SOURCE_DIR}/../cxx-modules-rules.cmake")
11 "${CMAKE_CURRENT_SOURCE_DIR}"
14 target_compile_features(a PUBLIC cxx_std_20)
21 "${CMAKE_CURRENT_SOURCE_DIR}"
24 target_compile_features(b PUBLIC cxx_std_20)
25 target_link_libraries(b PUBLIC a)
32 "${CMAKE_CURRENT_SOURCE_DIR}"
35 target_compile_features(c PUBLIC cxx_std_20)
36 target_link_libraries(c PUBLIC b)
43 "${CMAKE_CURRENT_SOURCE_DIR}"
46 target_compile_features(d PUBLIC cxx_std_20)
47 target_link_libraries(d PUBLIC c)
54 "${CMAKE_CURRENT_SOURCE_DIR}"
57 target_compile_features(e PUBLIC cxx_std_20)
58 target_link_libraries(e PUBLIC d)
61 target_link_libraries(exe PRIVATE e)
66 add_test(NAME exe COMMAND exe)