cmake_minimum_required(VERSION 3.28) project(cxx_modules_vs_without_flags CXX) include("${CMAKE_SOURCE_DIR}/../cxx-modules-rules.cmake") set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_SCAN_FOR_MODULES ON) add_executable(vs_without_flags) target_sources(vs_without_flags PRIVATE main.cxx PRIVATE FILE_SET CXX_MODULES BASE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}" FILES module.cxx) add_test(NAME vs_without_flags COMMAND vs_without_flags)