Skip to content

Commit

Permalink
BUG: Include find GTest CMake code when installed
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
blowekamp committed Nov 25, 2024
1 parent 2792d9a commit 3298906
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Modules/ThirdParty/GoogleTest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ if(NOT ITK_BINARY_DIR)
set(GTEST_ROOT \"${GTEST_ROOT}\")
find_package(GTest REQUIRED)
endif()
")
set(ITKGoogleTest_EXPORT_CODE_INSTALL "
find_package(GTest REQUIRED)
")
endif()
endif ()
Expand Down

0 comments on commit 3298906

Please sign in to comment.