1 ## ===========================
2 ## == Compile each instance ==
3 ## ===========================
5 FILE(GLOB _instances "${CMAKE_CURRENT_SOURCE_DIR}/*.i")
7 FOREACH(_instance ${_instances})
10 ${PROJECT_BINARY_DIR}/lib
11 ${_instance} ${cpPlugins_NUMBER_OF_FILES}
12 "" "${prj_VERSION}" "${prj_SHORT_VERSION}"
14 LIST(APPEND _all_instances ${_lib_name})
17 cpPlugins_Instances ${_all_instances}
18 CACHE INTERNAL "All valid instances." FORCE
24 SET(_pfx "cpPlugins_")
25 TARGET_LINK_LIBRARIES(${_pfx}BaseObjects ${ITK_LIBRARIES})
26 TARGET_LINK_LIBRARIES(${_pfx}Images ${_pfx}BaseObjects)
27 TARGET_LINK_LIBRARIES(${_pfx}BoundingBoxes ${_pfx}BaseObjects)
28 TARGET_LINK_LIBRARIES(${_pfx}Meshes ${_pfx}BoundingBoxes)
29 TARGET_LINK_LIBRARIES(${_pfx}ImageIterators ${_pfx}Images)
30 TARGET_LINK_LIBRARIES(${_pfx}ImageFilters ${_pfx}Images ${_pfx}ImageIterators)
31 TARGET_LINK_LIBRARIES(${_pfx}ImageNeighborhoodIterators ${_pfx}Images)
32 TARGET_LINK_LIBRARIES(${_pfx}Paths ${_pfx}Images)