diff options
Diffstat (limited to 'Tests/RunCMake/CXXModules/examples/same-src-name/CMakeLists.txt')
-rw-r--r-- | Tests/RunCMake/CXXModules/examples/same-src-name/CMakeLists.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Tests/RunCMake/CXXModules/examples/same-src-name/CMakeLists.txt b/Tests/RunCMake/CXXModules/examples/same-src-name/CMakeLists.txt new file mode 100644 index 0000000..997bbb1 --- /dev/null +++ b/Tests/RunCMake/CXXModules/examples/same-src-name/CMakeLists.txt @@ -0,0 +1,20 @@ +cmake_minimum_required(VERSION 3.27) +project(cxx_modules_same_src_name CXX) + +include("${CMAKE_SOURCE_DIR}/../cxx-modules-rules.cmake") + +add_executable(same_src_name) +target_sources(same_src_name + PRIVATE + main.cxx + PRIVATE + FILE_SET CXX_MODULES + BASE_DIRS + "${CMAKE_CURRENT_SOURCE_DIR}" + FILES + a/same.cxx + b/same.cxx + ) +target_compile_features(same_src_name PUBLIC cxx_std_20) + +add_test(NAME same_src_name COMMAND same_src_name) |