It seems the SimpleITK is not build and it also shows an error of <could not find a package configuration file provided by ''itk" with any of the following names: ITKConfig.cmake itk-config.cmake>
To build SimpleITK from source, you need to point it to an ITK build (and all its other dependencies, if you turn on wrapping). This is no different from any other project using FetchContent approach. Going further in this direction, you can FetchContent more libraries (e.g. ITK) before SimpleITK, or full-blown superbuild.
Thanks for the reply. I can successfully build and configure the SimpleITK project manually. However, we need āautoā method to run the CMakeList.txt that other members can easily download/build/configure the project at individual machine.
I modified the CMakeList as following, but still have errors from terminal:
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ā 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.