cmake_minimum_required(VERSION 3.20) project(TextbookBuild LANGUAGES CXX) add_library(arithmetic STATIC add.cpp) target_compile_features(arithmetic PUBLIC cxx_std_20) add_executable(add-app main.cpp) target_link_libraries(add-app PRIVATE arithmetic) add_executable(stage-07-migrated stage-07-migrated.cpp) target_compile_features(stage-07-migrated PRIVATE cxx_std_20) set_target_properties(arithmetic add-app stage-07-migrated PROPERTIES CXX_EXTENSIONS OFF)