RTKConsortium / RTK

Reconstruction Toolkit
Apache License 2.0
241 stars 143 forks source link

Unknown CMake command "itk_module_test" #514

Closed xsk0802 closed 1 year ago

xsk0802 commented 1 year ago

I am trying to build the example: rtkmotioncompensateddfdktest.cxx using CMAKE but I am getting this error:

CMake Error at CMakeLists.txt:43 (itk_module_test): Unknown CMake command "itk_module_test". CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.25)

SimonRit commented 1 year ago

This is not an example, this is a test. You need to build RTK with the CMake option BUILD_TESTING ON to compile it. It think you should spend time on the ITK software guide to better understand RTK.