summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/FileSetModulesPrivate.cmake
blob: ca1898237f4a707c1aafef0313aa27c6e03d62c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
enable_language(CXX)
set(CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP 1)
set(CMAKE_EXPERIMENTAL_CXX_SCANDEP_SOURCE "")

add_library(module)
target_sources(module
  PRIVATE
    FILE_SET fs TYPE CXX_MODULES FILES
      sources/module.cxx)
target_compile_features(module
  PRIVATE
    cxx_std_20)