ENH: typo
[cmake.git] / Tests / Testing / CMakeLists.txt
blob9d9cf9ddbc2c51b52eecbcdc29eaed8ef50f0a14
2 # Testing
4 PROJECT (Testing)
7 # Lib and exe path
9 SET (LIBRARY_OUTPUT_PATH 
10      ${Testing_BINARY_DIR}/bin/ CACHE PATH 
11      "Single output directory for building all libraries.")
13 SET (EXECUTABLE_OUTPUT_PATH 
14      ${Testing_BINARY_DIR}/bin/ CACHE PATH 
15      "Single output directory for building all executables.")
18 # Where will executable tests be written ?
20 IF (EXECUTABLE_OUTPUT_PATH)
21   SET (CXX_TEST_PATH ${EXECUTABLE_OUTPUT_PATH})
22 ELSE (EXECUTABLE_OUTPUT_PATH)
23   SET (CXX_TEST_PATH .)
24 ENDIF (EXECUTABLE_OUTPUT_PATH)
27 # Include Dart
28 # (will also set NSLOOKUP, HOSTNAME, etc.)
30 INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
33 # Extra coverage
35 BUILD_COMMAND(BUILD_COMMAND_VAR ${CMAKE_MAKE_PROGRAM})
36 BUILD_NAME(BUILD_NAME_VAR)
37 SITE_NAME(SITE_NAME_VAR)
40 # Enable testing
42 ENABLE_TESTING()
45 # Add test
47 ADD_EXECUTABLE(testing testing.cxx)
48 ADD_TEST(testing ${Testing_BINARY_DIR}/bin/testing)
51 # skip level test
53 ADD_SUBDIRECTORY(Sub/Sub2)