CMakeLists.txt 544 B

123456789101112131415161718
  1. # a simple test case
  2. cmake_minimum_required (VERSION 2.6)
  3. project (OutOfSource)
  4. add_subdirectory(SubDir)
  5. get_directory_property(ANIMAL DIRECTORY OutOfSourceSubdir DEFINITION WEASELS)
  6. get_directory_property(ANIMALREL DIRECTORY SubDir/../OutOfSourceSubdir DEFINITION WEASELS)
  7. if(NOT "${ANIMAL}" STREQUAL "${ANIMALREL}")
  8. message(FATAL_ERROR "GET_DIRECTORY_PROPERTY does not seem to collapse paths.")
  9. endif()
  10. configure_file(
  11. ${OutOfSource_SOURCE_DIR}/testdp.h.in
  12. ${OutOfSource_BINARY_DIR}/SubDir/OutOfSourceSubdir/testdp.h
  13. )
  14. set(KEN 1)