## ================================= ## == Compile instances libraries == ## ================================= SET(pfx "cpPlugins_Instances_") SET(arg ${pfx} ${prj_VERSION} ${prj_SHORT_VERSION}) SET(_all_instances) FILE(GLOB _intances "${CMAKE_CURRENT_SOURCE_DIR}/*.i") FOREACH(_i ${_intances}) cpPlugins_WrapInstances(_instance ${_i} ${arg}) SET(_all_instances ${_all_instances} ${_instance}) ENDFOREACH(_i) SET( cpPlugins_Instances ${_all_instances} CACHE INTERNAL "All valid instances." FORCE ) ## =============== ## == Link them == ## =============== TARGET_LINK_LIBRARIES(${pfx}BaseObjects ${ITK_LIBRARIES} ${VTK_LIBRARIES}) TARGET_LINK_LIBRARIES(${pfx}BaseImages ${pfx}BaseObjects) TARGET_LINK_LIBRARIES(${pfx}Mesh ${pfx}BaseObjects) TARGET_LINK_LIBRARIES(${pfx}Paths ${pfx}BaseObjects ${pfx}BaseImages) TARGET_LINK_LIBRARIES(${pfx}Transforms ${pfx}BaseObjects) TARGET_LINK_LIBRARIES(${pfx}ScalarImages ${pfx}BaseImages) TARGET_LINK_LIBRARIES(${pfx}ColorImages ${pfx}BaseImages) TARGET_LINK_LIBRARIES(${pfx}VectorImages ${pfx}BaseImages) TARGET_LINK_LIBRARIES(${pfx}MedialnessFilters ${pfx}ScalarImages ${pfx}VectorImages) TARGET_LINK_LIBRARIES(${pfx}NeighborhoodIterators ${pfx}ScalarImages) TARGET_LINK_LIBRARIES(${pfx}BaseImageFilters ${pfx}ScalarImages ${pfx}ColorImages ${pfx}VectorImages) TARGET_LINK_LIBRARIES(${pfx}ImageReaders ${pfx}BaseImageFilters) TARGET_LINK_LIBRARIES(${pfx}ImageWriters ${pfx}BaseImageFilters) TARGET_LINK_LIBRARIES(${pfx}ScalarImagesFilters ${pfx}BaseImageFilters) TARGET_LINK_LIBRARIES(${pfx}CastImageFilters ${pfx}ScalarImagesFilters) TARGET_LINK_LIBRARIES(${pfx}BitwiseImageFilters ${pfx}ScalarImagesFilters) TARGET_LINK_LIBRARIES(${pfx}ThresholdFilters ${pfx}ScalarImagesFilters) TARGET_LINK_LIBRARIES(${pfx}ExtractImageFilters ${pfx}ScalarImagesFilters) TARGET_LINK_LIBRARIES(${pfx}DistanceMapFilters ${pfx}ThresholdFilters ${pfx}NeighborhoodIterators) TARGET_LINK_LIBRARIES(${pfx}MorphologicalImageFilters ${pfx}ScalarImagesFilters ${pfx}ThresholdFilters) TARGET_LINK_LIBRARIES(${pfx}GaussianImageFilters ${cpExtensions_LIB} ${pfx}ScalarImagesFilters ${pfx}VectorImages) TARGET_LINK_LIBRARIES(${pfx}ResamplingFilters ${pfx}ScalarImagesFilters ${pfx}Transforms) TARGET_LINK_LIBRARIES(${pfx}ImageMeshFilters ${pfx}ScalarImagesFilters ${pfx}Mesh) ## eof - $RCSfile$