2005-09-13 18:40:38 +04:00
|
|
|
# a simple test cas
|
2008-03-25 18:27:18 +03:00
|
|
|
cmake_minimum_required (VERSION 2.6)
|
2005-09-13 18:40:38 +04:00
|
|
|
project (OutOfSource)
|
2005-03-18 18:41:41 +03:00
|
|
|
|
2005-09-13 18:40:38 +04:00
|
|
|
add_subdirectory(SubDir)
|
2005-03-18 18:41:41 +03:00
|
|
|
|
2005-09-13 18:40:38 +04:00
|
|
|
get_directory_property(ANIMAL DIRECTORY OutOfSourceSubdir DEFINITION WEASELS)
|
2006-10-16 23:18:03 +04:00
|
|
|
get_directory_property(ANIMALREL DIRECTORY SubDir/../OutOfSourceSubdir DEFINITION WEASELS)
|
2012-08-13 21:47:32 +04:00
|
|
|
if(NOT "${ANIMAL}" STREQUAL "${ANIMALREL}")
|
|
|
|
message(FATAL_ERROR "GET_DIRECTORY_PROPERTY does not seem to collapse paths.")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2005-09-13 18:40:38 +04:00
|
|
|
|
|
|
|
configure_file(
|
|
|
|
${OutOfSource_SOURCE_DIR}/testdp.h.in
|
|
|
|
${OutOfSource_BINARY_DIR}/SubDir/OutOfSourceSubdir/testdp.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(KEN 1)
|