diff options
author | Duncan Mac-Vicar P <dmacvicar@suse.de> | 2007-11-08 11:32:57 +0000 |
---|---|---|
committer | Duncan Mac-Vicar P <dmacvicar@suse.de> | 2007-11-08 11:32:57 +0000 |
commit | 9582244b5619d91378bf373074ff5c4f28757a45 (patch) | |
tree | cb42357c15687905e76f6c33c8507184d3678ab0 /CMakeLists.txt | |
parent | adada9b8821f7cbdf14d7c60c1e7ecaae26bc1e3 (diff) | |
download | libsolv-9582244b5619d91378bf373074ff5c4f28757a45.tar.gz libsolv-9582244b5619d91378bf373074ff5c4f28757a45.tar.bz2 libsolv-9582244b5619d91378bf373074ff5c4f28757a45.zip |
compile testsuite only if present
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c1c80b..1d91451 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,7 +104,10 @@ set ( CMAKE_C_FLAGS_DEBUG "-g3 -O0" ) ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(tools) -ADD_SUBDIRECTORY(testsuite) + +IF( EXISTS "${CMAKE_SOURCE_DIR}/testsuite" ) + ADD_SUBDIRECTORY(testsuite) +ENDIF( EXISTS "${CMAKE_SOURCE_DIR}/testsuite" ) IF ( NOT SWIG_EXECUTABLE ) MESSAGE( FATAL "SWIG not found." ) |