-## =================
-## == Get subdirs ==
-## =================
+## =============
+## == Subdirs ==
+## =============
-SET(_curdir ${CMAKE_CURRENT_SOURCE_DIR})
-FILE(GLOB _children RELATIVE ${_curdir} ${_curdir}/*)
-SET(_dirlist "")
-FOREACH(_child ${_children})
- IF(IS_DIRECTORY ${_curdir}/${_child})
- LIST(APPEND _dirlist ${_child})
- ENDIF(IS_DIRECTORY ${_curdir}/${_child})
-ENDFOREACH(_child)
+SET(
+ _dirlist
+ #AnisotropicDiffusion
+ GenericFilters
+ #ImageArithmeticFilters
+ #ImageBooleanFilters
+ ImageDistanceMaps
+ #ImageGenericFilters
+ #ImageGradientFilters
+ ImageMeshFilters
+ ImageSources
+ ImageThresholdFilters
+ IO
+ MeshFilters
+ MeshSources
+ #Widgets
+ )
+
+#IF(ParabolicMorphology_LOADED)
+# LIST(APPEND _dirlist ImageParaMorphologyFilters)
+#ENDIF(ParabolicMorphology_LOADED)
## ===============================
## == Build each plugin library ==
## ===============================
+INCLUDE_DIRECTORIES(
+ ${PROJECT_SOURCE_DIR}/lib
+ ${PROJECT_BINARY_DIR}/lib
+ ${PROJECT_SOURCE_DIR}/lib/Instances
+ ${PROJECT_BINARY_DIR}/lib/Instances
+ )
FOREACH(_dir ${_dirlist})
- cpPlugins_WrapPlugins(
- ${_dir}
- ${prj_VERSION} ${prj_SHORT_VERSION}
- cpPlugins
- ${cpPlugins_LIB} ${cpExtensions_LIB} ${cpPlugins_Instances}
+ CreatePlugin(cpPlugins${_dir} ${_dir} ${cpPlugins_CONFIG_NUMBER_OF_FILES})
+ TARGET_LINK_LIBRARIES(
+ cpPlugins${_dir}
+ cpPlugins cpExtensions
+ ${cpPlugins_Instances}
)
ENDFOREACH(_dir)
-## eof - $RCSfile$
+TARGET_LINK_LIBRARIES(
+ cpPluginsImageDistanceMaps
+ cpPluginsImageThresholdFilters
+ )
+
+## eof - $RSCfile$