diff options
Diffstat (limited to 'Tests/SystemInformation/CMakeLists.txt')
-rw-r--r-- | Tests/SystemInformation/CMakeLists.txt | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/Tests/SystemInformation/CMakeLists.txt b/Tests/SystemInformation/CMakeLists.txt index c41f42b..d75cb9e 100644 --- a/Tests/SystemInformation/CMakeLists.txt +++ b/Tests/SystemInformation/CMakeLists.txt @@ -1,5 +1,10 @@ PROJECT(DumpInformation) -INCLUDE_DIRECTORIES(${DumpInformation_BINARY_DIR}) + +INCLUDE_DIRECTORIES("This does not exists") +GET_DIRECTORY_PROPERTY(incl INCLUDE_DIRECTORIES) +SET_DIRECTORY_PROPERTIES(PROPERTIES INCLUDE_DIRECTORIES "${DumpInformation_BINARY_DIR};${DumpInformation_SOURCE_DIR}") + + CONFIGURE_FILE(${DumpInformation_SOURCE_DIR}/SystemInformation.in ${DumpInformation_BINARY_DIR}/SystemInformation.out) CONFIGURE_FILE(${DumpInformation_SOURCE_DIR}/DumpInformation.h.in @@ -33,3 +38,21 @@ FOREACH(var ${res}) "${var}\n") ENDFOREACH(var ${res}) +FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/OtherProperties.txt "") +GET_DIRECTORY_PROPERTY(res INCLUDE_DIRECTORIES) +FOREACH(var ${res}) + FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/OtherProperties.txt + "INCLUDE_DIRECTORY: ${var}\n") +ENDFOREACH(var) + +GET_DIRECTORY_PROPERTY(res LINK_DIRECTORIES) +FOREACH(var ${res}) + FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/OtherProperties.txt + "LINK_DIRECTORIES: ${var}\n") +ENDFOREACH(var) + +GET_DIRECTORY_PROPERTY(res INCLUDE_REGULAR_EXPRESSION) +FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/OtherProperties.txt + "INCLUDE_REGULAR_EXPRESSION: ${res}\n") + + |