CMakeLists.txt 545 B

1234567891011121314151617
  1. # a simple test cas
  2. project (OutOfSource)
  3. add_subdirectory(SubDir)
  4. get_directory_property(ANIMAL DIRECTORY OutOfSourceSubdir DEFINITION WEASELS)
  5. get_directory_property(ANIMALREL DIRECTORY SubDir/../OutOfSourceSubdir DEFINITION WEASELS)
  6. IF(NOT "${ANIMAL}" STREQUAL "${ANIMALREL}")
  7. MESSAGE(FATAL_ERROR "GET_DIRECTORY_PROPERTY does not seem to collapse paths.")
  8. ENDIF(NOT "${ANIMAL}" STREQUAL "${ANIMALREL}")
  9. configure_file(
  10. ${OutOfSource_SOURCE_DIR}/testdp.h.in
  11. ${OutOfSource_BINARY_DIR}/SubDir/OutOfSourceSubdir/testdp.h
  12. )
  13. set(KEN 1)