summaryrefslogtreecommitdiff
path: root/science/InsightToolkit/files/patch-CMake_ITKModuleTest.cmake
blob: 1dc9cb92366af4a6dfb85ae86e054040d494f2e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
--- CMake/ITKModuleTest.cmake.orig	2022-11-17 05:24:11 UTC
+++ CMake/ITKModuleTest.cmake
@@ -193,6 +193,7 @@ endfunction()
 
 function(CreateGoogleTestDriver KIT KIT_LIBS KitTests)
   set(exe "${KIT}GTestDriver")
+  find_package(GTest)
   add_executable(${exe} ${KitTests})
   target_link_libraries(${exe} ${KIT_LIBS} GTest::GTest GTest::Main)
   itk_module_target_label(${exe})