Config-check.cmake 486 B

12345678910111213141516
  1. include(${CMAKE_CURRENT_LIST_DIR}/Assertions.cmake)
  2. set(out_dir "${RunCMake_BINARY_DIR}/Config-build/CMakeFiles/Export/510c5684a4a8a792eadfb55bc9744983")
  3. macro(check_config CONFIG)
  4. string(TOLOWER "${CONFIG}" CONFIG_LOWER)
  5. file(READ "${out_dir}/foo@${CONFIG_LOWER}.cps" content)
  6. expect_value("${content}" "${CONFIG}" "configuration")
  7. endmacro()
  8. if(RunCMake_GENERATOR_IS_MULTI_CONFIG)
  9. check_config(FooConfig)
  10. check_config(BarConfig)
  11. else()
  12. check_config(TestConfig)
  13. endif()