Skip to content

COMP: Use GTest::gtest and GTest::gtest_main targets for ITK > v5.4.5#1408

Merged
N-Dekker merged 1 commit intomainfrom
CMake-gtest-targets
Feb 13, 2026
Merged

COMP: Use GTest::gtest and GTest::gtest_main targets for ITK > v5.4.5#1408
N-Dekker merged 1 commit intomainfrom
CMake-gtest-targets

Conversation

@N-Dekker
Copy link
Copy Markdown
Member

Aims to fix CMake errors when using ITK v6.0b02, saying

CMake Error at Common/GTesting/CMakeLists.txt:38 (target_link_libraries):
  Target "CommonGTest" links to:

    GTest::GTest

  but the target was not found.

Following ITK pull request InsightSoftwareConsortium/ITK#5675 commit InsightSoftwareConsortium/ITK@51c24a5

Aims to fix CMake errors when using ITK v6.0b02, saying

    CMake Error at Common/GTesting/CMakeLists.txt:38 (target_link_libraries):
      Target "CommonGTest" links to:

        GTest::GTest

      but the target was not found.

Following ITK pull request InsightSoftwareConsortium/ITK#5675 commit InsightSoftwareConsortium/ITK@51c24a5
@N-Dekker N-Dekker merged commit b270116 into main Feb 13, 2026
8 checks passed
@N-Dekker N-Dekker deleted the CMake-gtest-targets branch February 13, 2026 10:54
N-Dekker added a commit to N-Dekker/ITKElastix that referenced this pull request Mar 13, 2026
Upgraded to SuperElastix/elastix@d6affa8

Including:

* ENH: use utf-8 via manifest on Windows by codeling in SuperElastix/elastix#1401
* ENH: Add relative path to lib directory to RPATH on Linux and MacOS in SuperElastix/elastix#1404
* COMP: Replace MersenneTwister Initialize calls in tests with SetSeed in SuperElastix/elastix#1406
* COMP: Use GTest::gtest and GTest::gtest_main targets for ITK > v5.4.5 in SuperElastix/elastix#1408
* Upgrade to Doxygen v1.16.1 in SuperElastix/elastix#1409
* Avoid calling `ImageConstIterator::GetIndex()` iteratively, in transforms and metrics in SuperElastix/elastix#1410
* DOC: Exclude GTesting from Doxygen in SuperElastix/elastix#1411
* ENH: Lazy loading for optional components (IMPACT) by vboussot in SuperElastix/elastix#1396
* Small MainBase style improvements regarding lazy component loading in SuperElastix/elastix#1412
* Reduce `#if` blocks in `MainBase::TryLoadComponentPlugin` in SuperElastix/elastix#1414
* STYLE: Remove deprecated member functions from `elx::ParameterObject` in SuperElastix/elastix#1417
* Remove VERSION and SOVERSION target properties, replace "elx" prefix with "elx-", for library files  in SuperElastix/elastix#1416
N-Dekker added a commit to N-Dekker/ITKElastix that referenced this pull request Mar 16, 2026
Upgraded to SuperElastix/elastix@d6affa8

Including:

* ENH: use utf-8 via manifest on Windows by codeling in SuperElastix/elastix#1401
* ENH: Add relative path to lib directory to RPATH on Linux and MacOS in SuperElastix/elastix#1404
* COMP: Replace MersenneTwister Initialize calls in tests with SetSeed in SuperElastix/elastix#1406
* COMP: Use GTest::gtest and GTest::gtest_main targets for ITK > v5.4.5 in SuperElastix/elastix#1408
* Upgrade to Doxygen v1.16.1 in SuperElastix/elastix#1409
* Avoid calling `ImageConstIterator::GetIndex()` iteratively, in transforms and metrics in SuperElastix/elastix#1410
* DOC: Exclude GTesting from Doxygen in SuperElastix/elastix#1411
* ENH: Lazy loading for optional components (IMPACT) by vboussot in SuperElastix/elastix#1396
* Small MainBase style improvements regarding lazy component loading in SuperElastix/elastix#1412
* Reduce `#if` blocks in `MainBase::TryLoadComponentPlugin` in SuperElastix/elastix#1414
* STYLE: Remove deprecated member functions from `elx::ParameterObject` in SuperElastix/elastix#1417
* Remove VERSION and SOVERSION target properties, replace "elx" prefix with "elx-", for library files  in SuperElastix/elastix#1416
N-Dekker added a commit to N-Dekker/ITKElastix that referenced this pull request Mar 17, 2026
Upgraded to SuperElastix/elastix@ef34ca9

Including:

* ENH: use utf-8 via manifest on Windows by codeling in SuperElastix/elastix#1401
* ENH: Add relative path to lib directory to RPATH on Linux and MacOS in SuperElastix/elastix#1404
* COMP: Replace MersenneTwister Initialize calls in tests with SetSeed in SuperElastix/elastix#1406
* COMP: Use GTest::gtest and GTest::gtest_main targets for ITK > v5.4.5 in SuperElastix/elastix#1408
* Upgrade to Doxygen v1.16.1 in SuperElastix/elastix#1409
* Avoid calling `ImageConstIterator::GetIndex()` iteratively, in transforms and metrics in SuperElastix/elastix#1410
* DOC: Exclude GTesting from Doxygen in SuperElastix/elastix#1411
* ENH: Lazy loading for optional components (IMPACT) by vboussot in SuperElastix/elastix#1396
* Small MainBase style improvements regarding lazy component loading in SuperElastix/elastix#1412
* Reduce `#if` blocks in `MainBase::TryLoadComponentPlugin` in SuperElastix/elastix#1414
* STYLE: Remove deprecated member functions from `elx::ParameterObject` in SuperElastix/elastix#1417
* Remove VERSION and SOVERSION target properties, replace "elx" prefix with "elx-", for library files  in SuperElastix/elastix#1416
* STYLE: Remove redundant `file(MAKE_DIRECTORY ...)` calls from CMakeLists in SuperElastix/elastix#1418
* ENH: Use the full date and time (RFC 2822) in Doxygen generated HTML in SuperElastix/elastix#1419
* ENH: Let ParameterObject throw an exception when index is out of range in SuperElastix/elastix#1420
* ENH: ParameterObject.GetParameter throw when parameter name is not there in SuperElastix/elastix#1422
* ENH: Add Chinese chars to path names Testing/Data and output directory in SuperElastix/elastix#1421
* Add patch version number to library file names,  bump elastix version to 5.3.1 in SuperElastix/elastix#1423
N-Dekker added a commit that referenced this pull request Apr 10, 2026
Restored support for new GTest target names, that was already introduced with pull request #1408 commit b270116 "COMP: Use GTest::gtest and GTest::gtest_main targets for ITK > v5.4.5"

It was accidentally removed with pull request #1396 commit d3fd241 "ENH: Enable IMPACT as a lazy-loaded plugin (CPU/CUDA)"
N-Dekker added a commit that referenced this pull request Apr 10, 2026
Restored support for new GTest target names, that was already introduced with pull request #1408 commit b270116 "COMP: Use GTest::gtest and GTest::gtest_main targets for ITK > v5.4.5"

It was accidentally removed with pull request #1396 commit d3fd241 "ENH: Enable IMPACT as a lazy-loaded plugin (CPU/CUDA)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant