2005-09-13 10:40:38 -04:00
|
|
|
# a simple test cas
|
2008-03-25 11:27:18 -04:00
|
|
|
cmake_minimum_required (VERSION 2.6)
|
2005-09-13 10:40:38 -04:00
|
|
|
project (OutOfSource)
|
2005-03-18 10:41:41 -05:00
|
|
|
|
2005-09-13 10:40:38 -04:00
|
|
|
add_subdirectory(SubDir)
|
2005-03-18 10:41:41 -05:00
|
|
|
|
2005-09-13 10:40:38 -04:00
|
|
|
get_directory_property(ANIMAL DIRECTORY OutOfSourceSubdir DEFINITION WEASELS)
|
2006-10-16 15:18:03 -04:00
|
|
|
get_directory_property(ANIMALREL DIRECTORY SubDir/../OutOfSourceSubdir DEFINITION WEASELS)
|
|
|
|
IF(NOT "${ANIMAL}" STREQUAL "${ANIMALREL}")
|
|
|
|
MESSAGE(FATAL_ERROR "GET_DIRECTORY_PROPERTY does not seem to collapse paths.")
|
|
|
|
ENDIF(NOT "${ANIMAL}" STREQUAL "${ANIMALREL}")
|
2005-09-13 10:40:38 -04:00
|
|
|
|
|
|
|
configure_file(
|
|
|
|
${OutOfSource_SOURCE_DIR}/testdp.h.in
|
|
|
|
${OutOfSource_BINARY_DIR}/SubDir/OutOfSourceSubdir/testdp.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(KEN 1)
|