Summary of what happened:
Can’t seem to get the binaries from the latest ITK-Snap to build. Keeps throwing a cmake error
-- ITK-SNAP Git Info: -- Branch : master -- SHA : 797769eef1f0c09c3d147aa407015459451ec991 -- Date : 2023-04-13 10:53:54 -0700 CMake Error at CMake/standalone.cmake:4 (FIND_PACKAGE): By not providing "FindITK.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "ITK", but CMake did not find one. Could not find a package configuration file provided by "ITK" (requested version 5.2.1) with any of the following names: ITKConfig.cmake itk-config.cmake Add the installation prefix of "ITK" to CMAKE_PREFIX_PATH or set "ITK_DIR" to a directory containing one of the above files. If "ITK" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:151 (INCLUDE)
Tried multiple Stackoverflow suggestions (ITK: Cannot find ITKConfig.cmake - Stack Overflow) but similar errors on those.
That said, how to CORRECTLY build this from the Git source is still not clear to me based on my inexperience and the documentation (https://itk.org/ItkSoftwareGuide.pdf), so I may just not be doing it correctly.
Command used (and if a helper script was used, a link to the helper script or the command generated):
gh repo clone pyushkevich/itksnap
While in the cloned repo:
sudo cmake -DITK_DIR=/home/<my_username>/destination_folder CMakeLists.txt
ITK: -- ITK-SNAP Git Info: -- Branch : master -- SHA : 797769eef1f0c09c3d147aa407015459451ec991 -- Date : 2023-04-13 10:53:54 -0700
Environment (Docker, Singularity, custom installation):
OS: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy 5.19.0-40-generic cmake version 3.22.1
Local installation, not a docker and not looking to do one (yet).