summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/CMakeLists.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 3c0f30a..b329c58 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -158,11 +158,14 @@ IF(BUILD_TESTING)
wrapping
${CMake_BINARY_DIR}/Tests/Wrapping/bin)
- ADD_TEST(qtwrapping ${CMake_BINARY_DIR}/Source/cmaketest
- ${CMake_SOURCE_DIR}/Tests/Wrapping
- ${CMake_BINARY_DIR}/Tests/Wrapping
- qtwrapping
- ${CMake_BINARY_DIR}/Tests/Wrapping/bin)
+ INCLUDE ( ${CMAKE_ROOT}/Modules/FindQt.cmake )
+ IF (QT_FOUND)
+ ADD_TEST(qtwrapping ${CMake_BINARY_DIR}/Source/cmaketest
+ ${CMake_SOURCE_DIR}/Tests/Wrapping
+ ${CMake_BINARY_DIR}/Tests/Wrapping
+ qtwrapping
+ ${CMake_BINARY_DIR}/Tests/Wrapping/bin)
+ ENDIF (QT_FOUND)
ADD_TEST(testdriver1 ${CMake_BINARY_DIR}/Source/cmaketest
${CMake_SOURCE_DIR}/Tests/TestDriver