summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/GenEx-TARGET_PROPERTY/INCLUDE_DIRECTORIES-check.cmake
blob: ecf7bfee9263c758e80d6ea9dac9efbd393b1ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
file(READ "${RunCMake_TEST_BINARY_DIR}/out.txt" content)

unset(RunCMake_TEST_FAILED)

if (NOT content MATCHES "(INCLUDES1:${RunCMake_TEST_SOURCE_DIR}/include)")
  string(APPEND RunCMake_TEST_FAILED "wrong content for INCLUDES1: \"${CMAKE_MATCH_1}\"\n")
endif()

if (NOT content MATCHES "(INCLUDES2:><)")
  string(APPEND RunCMake_TEST_FAILED "wrong content for INCLUDES2: \"${CMAKE_MATCH_1}\"\n")
endif()
if (NOT content MATCHES "(INCLUDES3:><)")
  string(APPEND RunCMake_TEST_FAILED "wrong content for INCLUDES3: \"${CMAKE_MATCH_1}\"\n")
endif()
if (NOT content MATCHES "(CUSTOM:>;;<)")
  string(APPEND RunCMake_TEST_FAILED "wrong content for CUSTOM: \"${CMAKE_MATCH_1}\"\n")
endif()