소스 검색

Fix configure error relayed to missing ctkQtTesting cmake module

Jean-Christophe Fillion-Robin 11 년 전
부모
커밋
157fa3b8c5
3개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Libs/Testing/CMakeLists.txt
  2. 1 0
      Libs/Visualization/VTK/Widgets/Testing/Cpp/CMakeLists.txt
  3. 1 0
      Libs/Widgets/Testing/Cpp/CMakeLists.txt

+ 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()