CemrgApp
CemrgApp copied to clipboard
Compatibility with Windows Visual Studio 2022
To make this build work, apart from the changes in the code, which are few, one needs to do the following:
- Specify manually the
ITK_USE_FILEin the VMTK/CMakeLists.txt file (See specification below) - Comment in
vtkVmtk/Segmentation/CMakeLists.txtthe building ofvtkVmtkMedialCurve...cxx, it is not needed.
Set ITK_USE_FILE
if ( NOT ITK_FOUND )
message( STATUS "ITK not found. Please set ITK_DIR." )
find_package( ITK REQUIRED )
include( ${ITK_USE_FILE} )
And modify it to your include file, like
if ( NOT ITK_FOUND )
message( STATUS "ITK not found. Please set ITK_DIR." )
find_package( ITK REQUIRED )
include( "$CEMRG_BUILD/ep/src/ITK/CMake/UseITK.cmake")
Could you add these extra steps to the wiki page as well, to make sure the build instructions are all in one place? If those are only listed here in the PR, people will struggle to find them later once this PR is merged and closed.