summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/examples/depchain-modules-json-file/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CXXModules/examples/depchain-modules-json-file/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/CXXModules/examples/depchain-modules-json-file/CMakeLists.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/Tests/RunCMake/CXXModules/examples/depchain-modules-json-file/CMakeLists.txt b/Tests/RunCMake/CXXModules/examples/depchain-modules-json-file/CMakeLists.txt
new file mode 100644
index 0000000..9828ee6
--- /dev/null
+++ b/Tests/RunCMake/CXXModules/examples/depchain-modules-json-file/CMakeLists.txt
@@ -0,0 +1,23 @@
+cmake_minimum_required(VERSION 3.28)
+project(cxx_modules_depchain_modules_json_file CXX)
+
+include("${CMAKE_SOURCE_DIR}/../cxx-modules-rules.cmake")
+
+add_library(depchain_with_modules_json_file)
+target_sources(depchain_with_modules_json_file
+ PUBLIC
+ FILE_SET CXX_MODULES
+ BASE_DIRS
+ "${CMAKE_CURRENT_SOURCE_DIR}"
+ FILES
+ importable.cxx)
+target_compile_features(depchain_with_modules_json_file PUBLIC cxx_std_20)
+
+add_executable(depchain_modules_json_file)
+target_sources(depchain_modules_json_file
+ PRIVATE
+ main.cxx)
+target_link_libraries(depchain_modules_json_file
+ PRIVATE
+ depchain_with_modules_json_file)
+add_test(NAME depchain_modules_json_file COMMAND depchain_modules_json_file)