diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2002-01-18 17:03:32 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2002-01-18 17:03:32 (GMT) |
commit | 914e051fd781b2f90e731e4bf967b5bcccc56962 (patch) | |
tree | 6543b6d67672291ecf91de40af8bf6742f52739f /Tests/ComplexRelativePaths/VarTests.txt | |
parent | 6d1a312c7b9fb89d1f3e1da992941fec2e4df7ac (diff) | |
download | CMake-914e051fd781b2f90e731e4bf967b5bcccc56962.zip CMake-914e051fd781b2f90e731e4bf967b5bcccc56962.tar.gz CMake-914e051fd781b2f90e731e4bf967b5bcccc56962.tar.bz2 |
Increase coverage, add tests
Diffstat (limited to 'Tests/ComplexRelativePaths/VarTests.txt')
-rw-r--r-- | Tests/ComplexRelativePaths/VarTests.txt | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/Tests/ComplexRelativePaths/VarTests.txt b/Tests/ComplexRelativePaths/VarTests.txt index 0ff9953..0775636 100644 --- a/Tests/ComplexRelativePaths/VarTests.txt +++ b/Tests/ComplexRelativePaths/VarTests.txt @@ -1,11 +1,36 @@ - SET (ZERO_VAR 0) + IF(ZERO_VAR) -ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED) + ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED) ELSE(ZERO_VAR) -ADD_DEFINITIONS(-DSHOULD_BE_DEFINED) + ADD_DEFINITIONS(-DSHOULD_BE_DEFINED) ENDIF(ZERO_VAR) SET(ONE_VAR 1) +VARIABLE_REQUIRES(ONE_VAR + ONE_VAR_IS_DEFINED ONE_VAR) + SET(STRING_VAR "CMake is great" CACHE STRING "test a cache variable") + +FOREACH (INDEX 1 2) + SET(FOREACH_VAR${INDEX} "VALUE${INDEX}") +ENDFOREACH(INDEX) + +FIND_FILE(FILENAME_VAR "VarTests.txt" ${Complex_SOURCE_DIR}) + +GET_FILENAME_COMPONENT(FILENAME_VAR_PATH ${FILENAME_VAR} PATH) +GET_FILENAME_COMPONENT(FILENAME_VAR_PATH_NAME ${FILENAME_VAR_PATH} NAME) +GET_FILENAME_COMPONENT(FILENAME_VAR_NAME ${FILENAME_VAR} NAME) +GET_FILENAME_COMPONENT(FILENAME_VAR_EXT ${FILENAME_VAR} EXT) +GET_FILENAME_COMPONENT(FILENAME_VAR_NAME_WE ${FILENAME_VAR} NAME_WE) + +FIND_PATH(PATH_VAR "VarTests.txt" ${Complex_SOURCE_DIR}) +GET_FILENAME_COMPONENT(PATH_VAR_NAME ${PATH_VAR} NAME) + +# Coverage only + +BUILD_COMMAND(BUILD_COMMAND_VAR ${CMAKE_MAKE_PROGRAM}) +BUILD_NAME(BUILD_NAME_VAR) +SITE_NAME(SITE_NAME_VAR) + |