CemrgApp icon indicating copy to clipboard operation
CemrgApp copied to clipboard

Compatibility with Windows Visual Studio 2022

Open alonsoJASL opened this issue 1 year ago • 1 comments

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_FILE in the VMTK/CMakeLists.txt file (See specification below)
  • Comment in vtkVmtk/Segmentation/CMakeLists.txt the building of vtkVmtkMedialCurve...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")

alonsoJASL avatar Nov 12 '24 16:11 alonsoJASL

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.

JostMigenda avatar Nov 15 '24 15:11 JostMigenda