Tests/RunCMake/CXXModulesCompile/exp-trans-mods1-install/test/CMakeLists.txt
raw| 1 | cmake_minimum_required(VERSION 3.28) |
| 2 | project(cxx_modules_library NONE) |
| 3 | |
| 4 | find_package(export_transitive_modules1 REQUIRED) |
| 5 | find_package(export_transitive_modules1_cps REQUIRED) |
| 6 | |
| 7 | function(test_namespace namespace) |
| 8 | if (NOT TARGET ${namespace}::export_transitive_modules1) |
| 9 | message(FATAL_ERROR |
| 10 | "Missing imported target") |
| 11 | endif () |
| 12 | endfunction() |
| 13 | |
| 14 | test_namespace(CXXModules) |
| 15 | test_namespace(export_transitive_modules1_cps) |