我的程序使用
FIND_PACKAGE(ITK REQUIRED)
它给了我错误信息
Could not find a package configuration file provided by "ITK" with any of
the following names:
ITKConfig.cmake
itk-config.cmake
我已经安装了itk和itk-devel软件包,但它们都没有任何CMake模块。来自CMake的模块已被弃用。
我正在使用Fedora 23和CMake 3.4.1
编辑: 下载ITK 4.9.1并尝试使用
构建它cmake ../
我收到以下错误:
Performing Test C_HAS_WARNING-Wformat=2
Performing Test C_HAS_WARNING-Wformat=2 - Success
Performing Test CXX_HAS_WARNING-Wformat=2
Performing Test CXX_HAS_WARNING-Wformat=2 - Success
CMake Error at CMakeLists.txt:243 (include):
include could not find load file:
/home/.../InsightToolkit/InsightToolkit-4.9.1/Utilities/KWStyle/KWStyle.cmake
CMake Error at CMake/ITKModuleEnablement.cmake:43 (message):
No such module "ITKKWIML" needed by "ITKCommon"
Call Stack (most recent call first):
CMake/ITKModuleEnablement.cmake:59 (itk_module_check)
CMake/ITKModuleEnablement.cmake:59 (itk_module_check)
CMake/ITKModuleEnablement.cmake:66 (itk_module_check)
CMakeLists.txt:345 (include)