]> Creatis software - cpPlugins.git/blob - lib/Instances/CMakeLists.txt
a32d683216358fdfc48805cfea27a474645d4733
[cpPlugins.git] / lib / Instances / CMakeLists.txt
1 ## ===========================
2 ## == Compile each instance ==
3 ## ===========================
4
5 FILE(GLOB _instances "${CMAKE_CURRENT_SOURCE_DIR}/*.i")
6 SET(_all_instances)
7 FOREACH(_instance ${_instances})
8   CompileInstances(
9     _lib_name
10     ${_instance} ${cpPlugins_NUMBER_OF_FILES}
11     "" "${prj_VERSION}" "${prj_SHORT_VERSION}"
12     )
13   LIST(APPEND _all_instances ${_lib_name})
14 ENDFOREACH(_instance)
15 SET(
16   cpPlugins_Instances ${_all_instances}
17   CACHE INTERNAL "All valid instances." FORCE
18   )
19
20 ## ===========
21 ## == Links ==
22 ## ===========
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)
31 TARGET_LINK_LIBRARIES(${_pfx}Paths ${_pfx}Images)
32
33 ## eof - $RCSfile$