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