1 #=========================================================
3 # Add Libraries used in vv and clitk to avoid recompilation
4 WRAP_GGO(clitkAffineRegistration_GGO_C clitkAffineRegistration.ggo)
5 add_library(clitkAffineRegistrationLib
6 clitkAffineRegistrationGenericFilter.cxx
7 ${clitkAffineRegistration_GGO_C}
8 clitkLBFGSBOptimizer.cxx
9 clitkGenericAffineTransform.cxx)
11 #=========================================================
13 if(CLITK_BUILD_REGISTRATION)
14 ############################## registration algorithms
15 add_executable(clitkAffineRegistration clitkAffineRegistration.cxx)
16 target_link_libraries(clitkAffineRegistration clitkAffineRegistrationLib clitkCommon)
17 set(REGISTRATION_INSTALL clitkAffineRegistration)
19 WRAP_GGO(clitkDemonsDeformableRegistration_GGO_C clitkDemonsDeformableRegistration.ggo)
20 add_executable(clitkDemonsDeformableRegistration clitkDemonsDeformableRegistration.cxx ${clitkDemonsDeformableRegistration_GGO_C} clitkDemonsDeformableRegistrationGenericFilter.cxx)
21 target_link_libraries(clitkDemonsDeformableRegistration clitkCommon)
22 set(REGISTRATION_INSTALL ${REGISTRATION_INSTALL} clitkDemonsDeformableRegistration)
24 WRAP_GGO(clitkBLUTDIR_GGO_C clitkBLUTDIR.ggo)
25 add_executable(clitkBLUTDIR clitkBLUTDIR.cxx clitkBLUTDIRGenericFilter.cxx ${clitkBLUTDIR_GGO_C} clitkLBFGSBOptimizer.cxx )
26 target_link_libraries(clitkBLUTDIR clitkCommon)
27 set(REGISTRATION_INSTALL ${REGISTRATION_INSTALL} clitkBLUTDIR)
30 ############################## registration-related tools to process points, bsplines, vf and image pyramids
31 WRAP_GGO(clitkCalculateTRE_GGO_C clitkCalculateTRE.ggo)
32 add_executable(clitkCalculateTRE clitkCalculateTRE.cxx clitkCalculateTREGenericFilter.cxx ${clitkCalculateTRE_GGO_C})
33 target_link_libraries(clitkCalculateTRE clitkCommon)
34 set(REGISTRATION_INSTALL ${REGISTRATION_INSTALL} clitkCalculateTRE)
36 WRAP_GGO(clitkMatrixTransformToVF_GGO_C clitkMatrixTransformToVF.ggo)
37 add_executable(clitkMatrixTransformToVF clitkMatrixTransformToVF.cxx clitkMatrixTransformToVFGenericFilter.cxx ${clitkMatrixTransformToVF_GGO_C})
38 target_link_libraries(clitkMatrixTransformToVF clitkCommon)
39 set(REGISTRATION_INSTALL ${REGISTRATION_INSTALL} clitkMatrixTransformToVF)
41 WRAP_GGO(clitkConvertBSplineDeformableTransformToVF_GGO_C clitkConvertBSplineDeformableTransformToVF.ggo)
42 add_executable(clitkConvertBSplineDeformableTransformToVF clitkConvertBSplineDeformableTransformToVF.cxx clitkConvertBSplineDeformableTransformToVFGenericFilter.cxx ${clitkConvertBSplineDeformableTransformToVF_GGO_C})
43 target_link_libraries(clitkConvertBSplineDeformableTransformToVF clitkCommon)
44 set(REGISTRATION_INSTALL ${REGISTRATION_INSTALL} clitkConvertBSplineDeformableTransformToVF)
46 install(TARGETS ${REGISTRATION_INSTALL} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE)
48 endif(CLITK_BUILD_REGISTRATION)