diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2002-01-19 01:32:06 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2002-01-19 01:32:06 (GMT) |
commit | c26008ccf3999156cab5a05172a04c562bed9cc8 (patch) | |
tree | ee95576b1664de2b2dbc8d97be121dc168292b9f /Tests/ComplexOneConfig/CMakeLists.txt | |
parent | 2b5bb96e2367e28e980d4dcc3ddbcbebe34d08af (diff) | |
download | CMake-c26008ccf3999156cab5a05172a04c562bed9cc8.zip CMake-c26008ccf3999156cab5a05172a04c562bed9cc8.tar.gz CMake-c26008ccf3999156cab5a05172a04c562bed9cc8.tar.bz2 |
ENH: Increase test + coverage
Diffstat (limited to 'Tests/ComplexOneConfig/CMakeLists.txt')
-rw-r--r-- | Tests/ComplexOneConfig/CMakeLists.txt | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt index 050cd3e..cae0377 100644 --- a/Tests/ComplexOneConfig/CMakeLists.txt +++ b/Tests/ComplexOneConfig/CMakeLists.txt @@ -12,7 +12,9 @@ ENDIF (CMAKE_ANSI_CXXFLAGS) ADD_DEFINITIONS(-DCMAKE_IS_FUN) -INCLUDE(${Complex_SOURCE_DIR}/VarTests.txt) +IF (EXISTS ${Complex_SOURCE_DIR}/VarTests.cmake) + INCLUDE(${Complex_SOURCE_DIR}/VarTests.cmake) +ENDIF (EXISTS ${Complex_SOURCE_DIR}/VarTests.cmake) LOAD_CACHE(${Complex_SOURCE_DIR}) @@ -53,13 +55,18 @@ SUBDIRS(Library Executable) SUBDIR_DEPENDS(Executable Library) # -# Exec program +# Exec program (TODO: test a result) # Increase coverage. # -OPTION(EXEC_PROGRAM "Test EXEC_PROGRAM" ON) -IF (EXEC_PROGRAM) - EXEC_PROGRAM("echo EXEC_PROGRAM") -ENDIF (EXEC_PROGRAM) +OPTION(NO_EXEC_PROGRAM "Do not test EXEC_PROGRAM" 0) +IF (NOT NO_EXEC_PROGRAM) + EXEC_PROGRAM("echo NO_EXEC_PROGRAM" "${Complex_BINARY_DIR}") +ELSE (NOT NO_EXEC_PROGRAM) + MESSAGE("Set this option ON") +ENDIF (NOT NO_EXEC_PROGRAM) + +MARK_AS_ADVANCED(NO_EXEC_PROGRAM) +MARK_AS_ADVANCED(CLEAR NO_EXEC_PROGRAM) # # More coverage @@ -78,6 +85,11 @@ INSTALL_FILES(/tmp .h ${Complex_BINARY_DIR}/cmTestConfigure.h) MAKE_DIRECTORY("${Complex_BINARY_DIR}/make_dir") # +# Testing +# +ENABLE_TESTING() + +# # Test Cable # CABLE_CLASS_SET(Float float) |