opnsense-ports/science/InsightToolkit/files/patch-CMake_ITKModuleTest.cmake
Franco Fichtner 249465794e */*: sync with upstream
Taken from: FreeBSD
2022-11-21 10:39:45 +01:00

10 lines
379 B
CMake

--- 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})