From 1b7b1e74546d7eb81b9641864895a8af425b4180 Mon Sep 17 00:00:00 2001 From: Stephen Aylward Date: Fri, 28 Jun 2024 06:31:27 -0400 Subject: [PATCH] BUG: TubeTK STATIC, even if itkTubeTK SHARED itkTubeTK is a two-library system: 1) The include directory contains the itkTubeTK library which depends on the TubeTK library. The itkTubeTK library is a high-quality ITK interface (that can be wrapped for python) to the TubeTK library. 2) The src directory contains the TubeTK library which is an (ancient) mix of ITK and non-ITK classes, functions, applications, and examples. It is poorly documented and inconsistent in style, but it is rich in functionality :) Regretfully the old TubeTK does not support being built as a shared library. So, even if itkTubeTK is being built shared, the underlying TubeTK library will always be built static. --- src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)