openigtlink / OpenIGTLink

Free, open-source network communication library for image-guided therapy
http://openigtlink.org
BSD 3-Clause "New" or "Revised" License
102 stars 184 forks source link

Missing `OpenIGTLinkVersion.cmake` file? #226

Closed adeguet1 closed 4 years ago

adeguet1 commented 4 years ago

After the usual cmake, make, make install, the following CMake config files are installed (on Ubuntu 18.04):

/usr/local/lib/igtl/cmake/igtl-3.1/OpenIGTLinkTargets-release.cmake
/usr/local/lib/igtl/cmake/igtl-3.1/OpenIGTLinkTargets.cmake
/usr/local/lib/igtl/cmake/igtl-3.1/OpenIGTLinkConfig.cmake
/usr/local/lib/igtl/cmake/igtl-3.1/UseOpenIGTLink.cmake

There doesn't seem to be a OpenIGTLinkVersion.cmake generated. I believe this file is needed if one tries to find the igtl CMake config for a specific version.

find_package (OpenIGTLink 3
                        HINTS igtl /usr/lib/igtl /usr/local/lib/igtl/cmake/igtl-3.1 /usr/local/lib/igtl /usr/local/)

See: https://cmake.org/cmake/help/latest/command/find_package.html#version-selection