You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
753 B

# a simple test case
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)
if(NOT "${ANIMAL}" STREQUAL "${ANIMALREL}")
message(FATAL_ERROR "GET_DIRECTORY_PROPERTY does not seem to collapse paths.")
endif()
configure_file(
${OutOfSource_SOURCE_DIR}/testdp.h.in
${OutOfSource_BINARY_DIR}/SubDir/OutOfSourceSubdir/testdp.h
)
set(KEN 1)
configure_file(SubInBuildCMakeLists.cmake ${CMAKE_CURRENT_BINARY_DIR}/SubInBuild/CMakeLists.txt COPYONLY)
add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/SubInBuild ${CMAKE_CURRENT_BINARY_DIR}/SubInBuild/Build)