]> Creatis software - cpPlugins.git/blob - plugins/CMakeLists.txt
cbf2528277fb86ceae88a28bab9dfcc2292296ae
[cpPlugins.git] / plugins / CMakeLists.txt
1 ## =============
2 ## == Subdirs ==
3 ## =============
4
5 SET(
6   _dirlist
7   AnisotropicDiffusion
8   GenericFilters
9   ImageBooleanFilters
10   ImageDistanceMaps
11   ImageGenericFilters
12   ImageGradientFilters
13   ImageMeshFilters
14   ImageSources
15   ImageThresholdFilters
16   IO
17   MeshFilters
18   MeshSources
19   Widgets
20   )
21
22 IF(ParabolicMorphology_LOADED)
23   LIST(APPEND _dirlist ImageParaMorphologyFilters)
24 ENDIF(ParabolicMorphology_LOADED)
25
26 ## ===============================
27 ## == Build each plugin library ==
28 ## ===============================
29
30 FOREACH(_dir ${_dirlist})
31   Wrap_cpPlugins(
32     _plugin
33     ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}
34     ${prj_VERSION} ${prj_SHORT_VERSION}
35     cpPlugins
36     )
37   TARGET_LINK_LIBRARIES(
38     ${_plugin} ${cpPlugins_LIB} ${cpExtensions_LIB} ${cpPlugins_Instances}
39     )
40 ENDFOREACH(_dir)
41
42 ## eof - $RSCfile$