2018-04-23 21:13:27 +02:00
|
|
|
# a simple test case
|
2008-10-12 18:41:06 +02:00
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (OutOfSource)
|
|
|
|
|
|
|
|
add_subdirectory(SubDir)
|
|
|
|
|
|
|
|
get_directory_property(ANIMAL DIRECTORY OutOfSourceSubdir DEFINITION WEASELS)
|
|
|
|
get_directory_property(ANIMALREL DIRECTORY SubDir/../OutOfSourceSubdir DEFINITION WEASELS)
|
2013-03-16 19:13:01 +02:00
|
|
|
if(NOT "${ANIMAL}" STREQUAL "${ANIMALREL}")
|
|
|
|
message(FATAL_ERROR "GET_DIRECTORY_PROPERTY does not seem to collapse paths.")
|
|
|
|
endif()
|
2008-10-12 18:41:06 +02:00
|
|
|
|
|
|
|
configure_file(
|
|
|
|
${OutOfSource_SOURCE_DIR}/testdp.h.in
|
|
|
|
${OutOfSource_BINARY_DIR}/SubDir/OutOfSourceSubdir/testdp.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(KEN 1)
|