More IF coverage

This commit is contained in:
Sebastien Barre 2002-01-20 02:21:25 -05:00
parent 6f3570656c
commit 7bda70b836
3 changed files with 36 additions and 0 deletions

View File

@ -83,6 +83,18 @@ ELSE(COMMAND "ROQUEFORT")
ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_COMMAND2) ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_COMMAND2)
ENDIF(COMMAND "ROQUEFORT") ENDIF(COMMAND "ROQUEFORT")
IF (EXISTS ${Complex_SOURCE_DIR}/VarTests.cmake)
ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_EXISTS)
ELSE(EXISTS ${Complex_SOURCE_DIR}/VarTests.cmake)
ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED_EXISTS)
ENDIF (EXISTS ${Complex_SOURCE_DIR}/VarTests.cmake)
IF (EXISTS ${Complex_SOURCE_DIR}/roquefort.txt)
ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED_EXISTS2)
ELSE(EXISTS ${Complex_SOURCE_DIR}/roquefort.txt)
ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_EXISTS2)
ENDIF (EXISTS ${Complex_SOURCE_DIR}/roquefort.txt)
# #
# Test FOREACH # Test FOREACH
# #

View File

@ -83,6 +83,18 @@ ELSE(COMMAND "ROQUEFORT")
ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_COMMAND2) ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_COMMAND2)
ENDIF(COMMAND "ROQUEFORT") ENDIF(COMMAND "ROQUEFORT")
IF (EXISTS ${Complex_SOURCE_DIR}/VarTests.cmake)
ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_EXISTS)
ELSE(EXISTS ${Complex_SOURCE_DIR}/VarTests.cmake)
ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED_EXISTS)
ENDIF (EXISTS ${Complex_SOURCE_DIR}/VarTests.cmake)
IF (EXISTS ${Complex_SOURCE_DIR}/roquefort.txt)
ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED_EXISTS2)
ELSE(EXISTS ${Complex_SOURCE_DIR}/roquefort.txt)
ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_EXISTS2)
ENDIF (EXISTS ${Complex_SOURCE_DIR}/roquefort.txt)
# #
# Test FOREACH # Test FOREACH
# #

View File

@ -83,6 +83,18 @@ ELSE(COMMAND "ROQUEFORT")
ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_COMMAND2) ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_COMMAND2)
ENDIF(COMMAND "ROQUEFORT") ENDIF(COMMAND "ROQUEFORT")
IF (EXISTS ${Complex_SOURCE_DIR}/VarTests.cmake)
ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_EXISTS)
ELSE(EXISTS ${Complex_SOURCE_DIR}/VarTests.cmake)
ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED_EXISTS)
ENDIF (EXISTS ${Complex_SOURCE_DIR}/VarTests.cmake)
IF (EXISTS ${Complex_SOURCE_DIR}/roquefort.txt)
ADD_DEFINITIONS(-DSHOULD_NOT_BE_DEFINED_EXISTS2)
ELSE(EXISTS ${Complex_SOURCE_DIR}/roquefort.txt)
ADD_DEFINITIONS(-DSHOULD_BE_DEFINED_EXISTS2)
ENDIF (EXISTS ${Complex_SOURCE_DIR}/roquefort.txt)
# #
# Test FOREACH # Test FOREACH
# #