Closed thewtex closed 5 years ago
@thewtex If i try to build outside the ITK buildpath I get
CMake Error at CMakeLists.txt:22 (include): include could not find load file:
ITKModuleExternal
@plooney with what version of ITK?
4.13.1
On Fri, 21 Dec 2018, 21:24 Matt McCormick <notifications@github.com wrote:
@plooney https://github.com/plooney with what version of ITK?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/plooney/kretz/issues/8#issuecomment-449501972, or mute the thread https://github.com/notifications/unsubscribe-auth/AFRZAppLdBStd4vocobhwpzzgwGUgBKWks5u7VGdgaJpZM4YMLPF .
Did you try these steps?
mkdir kretz-module-build
cd kretz-module-build
cmake -DITK_DIR=/path/to/ITK-build /path/to/kretz
make
cd ..
mkdir kretz-programs-build
cd kretz-programs-build
cmake -DITK_DIR=/path/to/ITK-build /path/to/kretz/examples
make
Working now.
Great!
In order for other projects to use the code, it should be made available as an ITK Module. This will provide the required CMake configuration information and ITK target dependency information. This will allow other projects to build against the C++ classes provided.
For more information on generation of the required files, see the ITKModuleTemplate and documentation on How To Create A Module in the ITK Software Guide.