summaryrefslogtreecommitdiffstats
path: root/Tests/ComplexOneConfig/CMakeLists.txt
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-01-17 20:49:08 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-01-17 20:49:08 (GMT)
commite8c4fbef82bac94ee18cd99518357de1b1f237e8 (patch)
treee088c9f771324bf98a48560bd11ef8cd9f8e7cef /Tests/ComplexOneConfig/CMakeLists.txt
parent201764e166b26acfceef983c026b8aae452ed466 (diff)
downloadCMake-e8c4fbef82bac94ee18cd99518357de1b1f237e8.zip
CMake-e8c4fbef82bac94ee18cd99518357de1b1f237e8.tar.gz
CMake-e8c4fbef82bac94ee18cd99518357de1b1f237e8.tar.bz2
ENH: tests ADD_DEPENDENCIES and ADD_CUSTOM_COMMAND
Diffstat (limited to 'Tests/ComplexOneConfig/CMakeLists.txt')
-rw-r--r--Tests/ComplexOneConfig/CMakeLists.txt46
1 files changed, 34 insertions, 12 deletions
diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt
index 83f7874..51a5656 100644
--- a/Tests/ComplexOneConfig/CMakeLists.txt
+++ b/Tests/ComplexOneConfig/CMakeLists.txt
@@ -1,31 +1,53 @@
-# a simple test case
+#
+# A simple test case
+#
PROJECT (Complex)
-# use the ansi CXX compile flag for building cmake
+#
+# Use the ansi CXX compile flag for building cmake
+#
IF (CMAKE_ANSI_CXXFLAGS)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}")
ENDIF (CMAKE_ANSI_CXXFLAGS)
ADD_DEFINITIONS(-DCMAKE_IS_FUN)
-SUBDIRS(Library Executable)
-SUBDIR_DEPENDS(Executable Library)
INCLUDE(${Complex_SOURCE_DIR}/VarTests.txt)
CONFIGURE_FILE(
-${Complex_SOURCE_DIR}/cmTestConfigure.h.in
-${Complex_BINARY_DIR}/cmTestConfigure.h)
+ ${Complex_SOURCE_DIR}/cmTestConfigure.h.in
+ ${Complex_BINARY_DIR}/cmTestConfigure.h)
INCLUDE_DIRECTORIES(
-${Complex_BINARY_DIR}
-${Complex_SOURCE_DIR}/Library
-${Complex_SOURCE_DIR}/../../Source
+ ${Complex_BINARY_DIR}
+ ${Complex_SOURCE_DIR}/Library
+ ${Complex_SOURCE_DIR}/../../Source
)
+
LINK_DIRECTORIES(
-${Complex_BINARY_DIR}/Library
+ ${Complex_BINARY_DIR}/Library
)
INCLUDE_REGULAR_EXPRESSION("^(cmTest|file|sharedFile).*$")
-SET (LIBRARY_OUTPUT_PATH ${Complex_BINARY_DIR}/bin/ CACHE PATH "Single output directory for building all libraries.")
-SET (EXECUTABLE_OUTPUT_PATH ${Complex_BINARY_DIR}/bin/ CACHE PATH "Single output directory for building all executables.")
+SET (LIBRARY_OUTPUT_PATH
+ ${Complex_BINARY_DIR}/bin/ CACHE PATH
+ "Single output directory for building all libraries.")
+
+SET (EXECUTABLE_OUTPUT_PATH
+ ${Complex_BINARY_DIR}/bin/ CACHE PATH
+ "Single output directory for building all executables.")
+
+#
+# Where will executable tests be written ?
+#
+IF (EXECUTABLE_OUTPUT_PATH)
+ SET (CXX_TEST_PATH ${EXECUTABLE_OUTPUT_PATH})
+ELSE (EXECUTABLE_OUTPUT_PATH)
+ SET (CXX_TEST_PATH .)
+ENDIF (EXECUTABLE_OUTPUT_PATH)
+
+SUBDIRS(Library Executable)
+SUBDIR_DEPENDS(Executable Library)
+
+