Skip to content

Commit 3298906

Browse files
committed
BUG: Include find GTest CMake code when installed
Even if GTest is not an exported public or private dependency it may still be used by application if all the ITK modules are selected for use.
1 parent 2792d9a commit 3298906

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Modules/ThirdParty/GoogleTest/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ if(NOT ITK_BINARY_DIR)
1010
set(GTEST_ROOT \"${GTEST_ROOT}\")
1111
find_package(GTest REQUIRED)
1212
endif()
13+
")
14+
set(ITKGoogleTest_EXPORT_CODE_INSTALL "
15+
find_package(GTest REQUIRED)
1316
")
1417
endif()
1518
endif ()

0 commit comments

Comments
 (0)