]> Creatis software - clitk.git/blob - registration/CMakeLists.txt
Moved from repository clitk to clitk.private/tests_dav
[clitk.git] / registration / CMakeLists.txt
1 #ADD_LIBRARY(clitkLBGSB STATIC clitkLBGSBOptimizer.cxx)
2 #=========================================================
3
4 # Add Libraries used in vv and clitk to avoid recompilation
5 WRAP_GGO(clitkAffineRegistration_GGO_C clitkAffineRegistration.ggo)
6 ADD_LIBRARY(clitkAffineRegistrationLib 
7             clitkAffineRegistrationGenericFilter.cxx
8             ${clitkAffineRegistration_GGO_C}
9             clitkLBFGSBOptimizer.cxx
10             clitkGenericAffineTransform.cxx)
11
12 #=========================================================
13
14 IF(CLITK_BUILD_REGISTRATION)
15     ############################## registration algorithms
16     ADD_EXECUTABLE(clitkAffineRegistration clitkAffineRegistration.cxx)
17     TARGET_LINK_LIBRARIES(clitkAffineRegistration  clitkAffineRegistrationLib clitkCommon ${ITK_LIBRARIES})
18     SET(REGISTRATION_INSTALL clitkAffineRegistration)
19
20     WRAP_GGO(clitkDemonsDeformableRegistration_GGO_C clitkDemonsDeformableRegistration.ggo)
21     ADD_EXECUTABLE(clitkDemonsDeformableRegistration clitkDemonsDeformableRegistration.cxx ${clitkDemonsDeformableRegistration_GGO_C} clitkDemonsDeformableRegistrationGenericFilter.cxx)
22     TARGET_LINK_LIBRARIES(clitkDemonsDeformableRegistration ${ITK_LIBRARIES} clitkCommon)
23     SET(REGISTRATION_INSTALL ${REGISTRATION_INSTALL} clitkDemonsDeformableRegistration)
24
25     WRAP_GGO(clitkBLUTDIR_GGO_C clitkBLUTDIR.ggo)
26     ADD_EXECUTABLE(clitkBLUTDIR  clitkBLUTDIR.cxx clitkBLUTDIRGenericFilter.cxx ${clitkBLUTDIR_GGO_C} clitkLBFGSBOptimizer.cxx )
27     TARGET_LINK_LIBRARIES(clitkBLUTDIR clitkCommon ${ITK_LIBRARIES} )
28     SET(REGISTRATION_INSTALL ${REGISTRATION_INSTALL} clitkBLUTDIR)
29
30
31     ############################## registration-related tools to process points, bsplines, vf and image pyramids
32     WRAP_GGO(clitkCalculateTRE_GGO_C clitkCalculateTRE.ggo)
33     ADD_EXECUTABLE(clitkCalculateTRE clitkCalculateTRE.cxx clitkCalculateTREGenericFilter.cxx ${clitkCalculateTRE_GGO_C})
34     TARGET_LINK_LIBRARIES(clitkCalculateTRE clitkCommon ${ITK_LIBRARIES} )
35     SET(REGISTRATION_INSTALL ${REGISTRATION_INSTALL} clitkCalculateTRE)
36
37     WRAP_GGO(clitkMatrixTransformToVF_GGO_C clitkMatrixTransformToVF.ggo)
38     ADD_EXECUTABLE(clitkMatrixTransformToVF clitkMatrixTransformToVF.cxx clitkMatrixTransformToVFGenericFilter.cxx  ${clitkMatrixTransformToVF_GGO_C})
39     TARGET_LINK_LIBRARIES(clitkMatrixTransformToVF ${ITK_LIBRARIES} clitkCommon)
40     SET(REGISTRATION_INSTALL ${REGISTRATION_INSTALL} clitkMatrixTransformToVF)
41
42     WRAP_GGO(clitkConvertBSplineDeformableTransformToVF_GGO_C clitkConvertBSplineDeformableTransformToVF.ggo)
43     ADD_EXECUTABLE(clitkConvertBSplineDeformableTransformToVF  clitkConvertBSplineDeformableTransformToVF.cxx clitkConvertBSplineDeformableTransformToVFGenericFilter.cxx  ${clitkConvertBSplineDeformableTransformToVF_GGO_C})
44     TARGET_LINK_LIBRARIES(clitkConvertBSplineDeformableTransformToVF clitkCommon  ${ITK_LIBRARIES})
45     SET(REGISTRATION_INSTALL ${REGISTRATION_INSTALL} clitkConvertBSplineDeformableTransformToVF)
46
47     SET_TARGET_PROPERTIES(${REGISTRATION_INSTALL} PROPERTIES INSTALL_RPATH "${VTK_DIR}:${ITK_DIR}" )  
48     INSTALL (TARGETS ${REGISTRATION_INSTALL} DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE)
49
50 ENDIF(CLITK_BUILD_REGISTRATION)
51