]> Creatis software - clitk.git/commitdiff
Remove clitkAffineRegistrationLib compilation when CLTK_USE_REGISTRATION is OFF
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 7 Sep 2018 09:35:53 +0000 (11:35 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 7 Sep 2018 09:35:53 +0000 (11:35 +0200)
registration/CMakeLists.txt

index 4ad12a4da9cad661689599df63e966ffd7f7ddb1..91f1e26115d2d98cb8de27a6c8c880c2d2751105 100644 (file)
@@ -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)