FindDependencyExportStatic-check.cmake 671 B

12345678910111213
  1. file(READ "${RunCMake_TEST_BINARY_DIR}/mytargets.cmake" mytargets)
  2. if(NOT "${mytargets}" MATCHES "find_dependency\\(P1")
  3. string(APPEND RunCMake_TEST_FAILED "P1 dependency should be exported but it is not\n")
  4. endif()
  5. if(NOT "${mytargets}" MATCHES "find_dependency\\(P2")
  6. string(APPEND RunCMake_TEST_FAILED "P2 dependency should be exported but it is not\n")
  7. endif()
  8. if(NOT "${mytargets}" MATCHES "find_dependency\\(P3")
  9. string(APPEND RunCMake_TEST_FAILED "P3 dependency should be exported but it is not\n")
  10. endif()
  11. if(NOT "${mytargets}" MATCHES "find_dependency\\(P4")
  12. string(APPEND RunCMake_TEST_FAILED "P4 dependency should be exported but it is not\n")
  13. endif()