Я пытаюсь скомпилировать код из здесь, используя CMake и ITK. но я сталкиваюсь с ошибкой.
В CMake я выбираю исходную папку в /utilities/ITKImageSeriesToVolume и папку сборки в /utilities/ITKImageSeriesToVolume/build. Однако это дает мне ошибку:
CMake Error at CMakeLists.txt:42 (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" 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.
Я попытался установить переменную среды CMAKE_PREFIX_PATH, указывающую на корневую папку ITK, содержащую ITKConfig.cmake, но получаю ту же ошибку.
Надеясь, что кто-то может помочь, спасибо заранее.
РЕДАКТИРОВАТЬ: после установки ITK_DIR в корневую папку ITK я получаю:
CMake Error at D:/Apps/InsightToolkit/ITK/ITKConfig.cmake:48 (include):
include could not find load file:
D:/Apps/InsightToolkit/Build/ITKTargets.cmake
Call Stack (most recent call first):
CMakeLists.txt:42 (find_package)
CMake Error at D:/Apps/InsightToolkit/Source/CMake/ITKModuleAPI.cmake:56 (message):
No such module: "ITKDoubleConversion"
Call Stack (most recent call first):
D:/Apps/InsightToolkit/Source/CMake/ITKModuleAPI.cmake:26 (itk_module_load)
D:/Apps/InsightToolkit/Source/CMake/ITKModuleAPI.cmake:84 (_itk_module_config_recurse)
D:/Apps/InsightToolkit/ITK/ITKConfig.cmake:68 (itk_module_config)
CMakeLists.txt:42 (find_package)