WRAP_GGO(${clitkTool}_GGO_C ${clitkTool}.ggo)
SET(GGO_C_FILES ${GGO_C_FILES} ${${clitkTool}_GGO_C})
ENDFOREACH(clitkTool)
-ADD_LIBRARY(clitkRegistrationGgoLib ${GGO_C_FILES} clitkAffineRegistrationGenericFilter.cxx clitkLBFGSBOptimizer.cxx clitkGenericAffineTransform.cxx)
+ADD_LIBRARY(clitkRegistrationGgoLib ${GGO_C_FILES})
+ADD_LIBRARY(clitkAffineRegistrationLib clitkAffineRegistrationGenericFilter.cxx clitkLBFGSBOptimizer.cxx clitkGenericAffineTransform.cxx)
#=========================================================
IF(CLITK_BUILD_REGISTRATION)
############################## registration algorithms
ADD_EXECUTABLE(clitkAffineRegistration clitkAffineRegistration.cxx)
- TARGET_LINK_LIBRARIES(clitkAffineRegistration clitkRegistrationGgoLib clitkCommon ITKIO ITKNumerics ITKStatistics)
+ TARGET_LINK_LIBRARIES(clitkAffineRegistration clitkAffineRegistrationLib clitkRegistrationGgoLib clitkCommon ITKIO ITKNumerics ITKStatistics)
WRAP_GGO(clitkDemonsDeformableRegistration_GGO_C clitkDemonsDeformableRegistration.ggo)
ADD_EXECUTABLE(clitkDemonsDeformableRegistration clitkDemonsDeformableRegistration.cxx ${clitkDemonsDeformableRegistration_GGO_C} clitkDemonsDeformableRegistrationGenericFilter.cxx)
endif(COMMAND cmake_policy)
#=========================================================
+#List of vv tools to compile
SET(vv_TOOLS
vvToolWidgetBase
# vvToolWidgetWithStepsBase
# vvToolPlastimatch
# vvToolConnectedComponentLabeling
)
+#dependencies of the tools
+SET(vvToolRigidReg_LIBS clitkAffineRegistrationLib)
#=========================================================
# List of vv source files
clitkCommon ${ITK_LIBRARIES} QVTK vtkHybrid)
#=========================================================
+#Add each tool's dependencies
+foreach(tool ${vv_TOOLS})
+ target_link_libraries(vv ${${tool}_LIBS})
+endforeach(tool)
#=========================================================
# Install options (also used by CPack)