Files
CMake/Tests/RunCMake/ExportPackageInfo/FileSetHeaders-check.cmake
Vito Gamberini 7db44fbfb8 CPS: Support FILE_SET HEADERS
Fixes: #26806
2025-07-02 10:34:10 -04:00

11 lines
330 B
CMake

include(${CMAKE_CURRENT_LIST_DIR}/Assertions.cmake)
set(out_dir "${RunCMake_BINARY_DIR}/FileSetHeaders-build")
file(READ "${out_dir}/foo.cps" content)
string(JSON component GET "${content}" "components" "foo")
expect_array("${component}" 1 "includes")
expect_value("${component}" "${CMAKE_CURRENT_LIST_DIR}/foo" "includes" 0)