22 lines
507 B
CMake
22 lines
507 B
CMake
add_library(
|
|
chapter_02
|
|
src/chapter_2_tests.cpp
|
|
src/constexp.cpp
|
|
src/if_constexpr.cpp
|
|
src/ifswitch.cpp
|
|
src/initlist.cpp
|
|
src/null.cpp
|
|
src/range_based_for.cpp
|
|
src/structured_binding.cpp
|
|
src/type_inference.cpp
|
|
src/variadic_templates.cpp
|
|
src/delegate_constructor.cpp
|
|
src/inheritance_constructor.cpp
|
|
src/enum.cpp)
|
|
|
|
target_compile_features(chapter_02 PUBLIC cxx_std_20)
|
|
|
|
target_include_directories(chapter_02 PUBLIC include)
|
|
|
|
target_link_libraries(chapter_02 PUBLIC chapter_interface)
|