From f2abd66846f46f61e6f16e339da46515525826b1 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Fri, 7 Sep 2018 11:35:53 +0200 Subject: [PATCH] Remove clitkAffineRegistrationLib compilation when CLTK_USE_REGISTRATION is OFF --- registration/CMakeLists.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/registration/CMakeLists.txt b/registration/CMakeLists.txt index 4ad12a4..91f1e26 100644 --- a/registration/CMakeLists.txt +++ b/registration/CMakeLists.txt @@ -1,16 +1,16 @@ #========================================================= +if(CLITK_BUILD_REGISTRATION) # Add Libraries used in vv and clitk to avoid recompilation -WRAP_GGO(clitkAffineRegistration_GGO_C clitkAffineRegistration.ggo) -add_library(clitkAffineRegistrationLib - clitkAffineRegistrationGenericFilter.cxx - ${clitkAffineRegistration_GGO_C} - clitkLBFGSBOptimizer.cxx - clitkGenericAffineTransform.cxx) + WRAP_GGO(clitkAffineRegistration_GGO_C clitkAffineRegistration.ggo) + add_library(clitkAffineRegistrationLib + clitkAffineRegistrationGenericFilter.cxx + ${clitkAffineRegistration_GGO_C} + clitkLBFGSBOptimizer.cxx + clitkGenericAffineTransform.cxx) #========================================================= -if(CLITK_BUILD_REGISTRATION) ############################## registration algorithms add_executable(clitkAffineRegistration clitkAffineRegistration.cxx) target_link_libraries(clitkAffineRegistration clitkAffineRegistrationLib clitkCommon) -- 2.47.1