## =========================== ## == Compile each instance == ## =========================== FILE(GLOB _instances "${CMAKE_CURRENT_SOURCE_DIR}/*.i") SET(_all_instances) FOREACH(_instance ${_instances}) CompileInstances( _lib_name ${_instance} ${cpPlugins_NUMBER_OF_FILES} "" "${prj_VERSION}" "${prj_SHORT_VERSION}" ) LIST(APPEND _all_instances ${_lib_name}) ENDFOREACH(_instance) SET( cpPlugins_Instances ${_all_instances} CACHE INTERNAL "All valid instances." FORCE ) ## =========== ## == Links == ## =========== SET(_pfx "cpPlugins_") TARGET_LINK_LIBRARIES(${_pfx}BaseObjects ${ITK_LIBRARIES}) TARGET_LINK_LIBRARIES(${_pfx}Images ${_pfx}BaseObjects) TARGET_LINK_LIBRARIES(${_pfx}BoundingBoxes ${_pfx}BaseObjects) TARGET_LINK_LIBRARIES(${_pfx}Meshes ${_pfx}BoundingBoxes) TARGET_LINK_LIBRARIES(${_pfx}ImageIterators ${_pfx}Images) TARGET_LINK_LIBRARIES(${_pfx}ImageFilters ${_pfx}Images ${_pfx}ImageIterators) TARGET_LINK_LIBRARIES(${_pfx}ImageNeighborhoodIterators ${_pfx}Images) ## eof - $RCSfile$