Browse Source

Fix configure error relayed to missing ctkQtTesting cmake module

Jean-Christophe Fillion-Robin 10 years ago
parent
commit
157fa3b8c5

+ 1 - 1
Libs/Testing/CMakeLists.txt

@@ -1,7 +1,7 @@
 project(CTKTesting)
 
 if(CTK_USE_QTTESTING)
-  include(../QtTesting/CMake/ctkQtTesting.cmake)
+  include(${CMAKE_SOURCE_DIR}/Libs/QtTesting/CMake/ctkQtTesting.cmake)
 endif()
 install(FILES
   ctkTest.h

+ 1 - 0
Libs/Visualization/VTK/Widgets/Testing/Cpp/CMakeLists.txt

@@ -98,6 +98,7 @@ set(LIBRARY_NAME ${PROJECT_NAME})
 # If CTK_USE_QTTESTING is ON
 #
 if(CTK_USE_QTTESTING)
+  include(${CMAKE_SOURCE_DIR}/Libs/QtTesting/CMake/ctkQtTesting.cmake)
   ctkQtTesting(Tests TEST_MOC_SOURCES TEST_UI_FORMS Tests_RESOURCES)
 endif()
 

+ 1 - 0
Libs/Widgets/Testing/Cpp/CMakeLists.txt

@@ -196,6 +196,7 @@ set(Tests_MOC_SRCS
   )
 
 if(CTK_USE_QTTESTING)
+  include(${CMAKE_SOURCE_DIR}/Libs/QtTesting/CMake/ctkQtTesting.cmake)
   ctkQtTesting(Tests_SRCS Tests_MOC_SRCS Tests_UI_FORMS Tests_RESOURCES)
 endif()