Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Tests / OutOfSource / CMakeLists.txt
blobe250f41771b05b46bedb851edd55894f319e81ee
1 # a simple test cas
2 cmake_minimum_required (VERSION 2.6)
3 project (OutOfSource)
5 add_subdirectory(SubDir)
7 get_directory_property(ANIMAL DIRECTORY OutOfSourceSubdir DEFINITION WEASELS)
8 get_directory_property(ANIMALREL DIRECTORY SubDir/../OutOfSourceSubdir DEFINITION WEASELS)
9 IF(NOT "${ANIMAL}" STREQUAL "${ANIMALREL}")
10   MESSAGE(FATAL_ERROR "GET_DIRECTORY_PROPERTY does not seem to collapse paths.")
11 ENDIF(NOT "${ANIMAL}" STREQUAL "${ANIMALREL}")
13 configure_file(
14   ${OutOfSource_SOURCE_DIR}/testdp.h.in
15   ${OutOfSource_BINARY_DIR}/SubDir/OutOfSourceSubdir/testdp.h
16   )
18 set(KEN 1)