diff --git a/include/MinimalPathExtractionExport.h b/include/MinimalPathExtractionExport.h index 34a8cc47a..a50e88b72 100644 --- a/include/MinimalPathExtractionExport.h +++ b/include/MinimalPathExtractionExport.h @@ -2,7 +2,7 @@ #include "itkConfigure.h" // Workaround for ITKTubeTK Python package builds -#if !defined(ITK_BUILD_SHARED_LIBS) && !defined(MinimalPathExtraction_EXPORT) +#if !defined(MinimalPathExtraction_EXPORT) # define MinimalPathExtraction_EXPORT # define MinimalPathExtraction_HIDDEN #else diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2fbeb1c56..9477361e7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -31,4 +31,6 @@ include( ObjectDocuments.cmake ) include( Registration.cmake ) include( Segmentation.cmake ) -itk_module_add_library( TubeTK ${TubeTK_SRCS} ) +add_library(TubeTK STATIC ${TubeTK_SRCS}) +itk_module_link_dependencies() +itk_module_target(TubeTK)