plooney / kretz

Apache License 2.0
11 stars 5 forks source link

Format as an ITK module to enable use as a library #8

Closed thewtex closed 5 years ago

thewtex commented 5 years ago

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.

plooney commented 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
thewtex commented 5 years ago

@plooney with what version of ITK?

plooney commented 5 years ago

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 .

thewtex commented 5 years ago

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
plooney commented 5 years ago

Working now.

thewtex commented 5 years ago

Great!