Apply patch for use with add_subdirectory in other projects
-
I use plastimatch in my code with the
add_subdirectory
from CMake. However, theCMAKE_SOURCE_DIR
used in the plastimatch cmake then refers to the master project source dir and will generate a lot of errors. This is a quite simple fix by usingCMAKE_CURRENT_SOURCE_DIR
instead. -
A small fix to
Rtss_roi
to avoid doublefree
(I encountered that problem bystd::copy
'ing data from the object, but the compiler optimized to memmove). -
Also I tried using ITK 5 and got a few errors which i tried to correct, but I got other problems and didn't work further on that. If you 'cherry-pick', these changes can be left out.