]> Creatis software - cpPlugins.git/blob - lib/Instances/CMakeLists.txt
PolyLine updated.
[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     ${PROJECT_BINARY_DIR}/lib
11     ${_instance} ${cpPlugins_NUMBER_OF_FILES}
12     "" "${prj_VERSION}" "${prj_SHORT_VERSION}"
13     )
14   LIST(APPEND _all_instances ${_lib_name})
15 ENDFOREACH(_instance)
16 SET(
17   cpPlugins_Instances ${_all_instances}
18   CACHE INTERNAL "All valid instances." FORCE
19   )
20
21 ## ===========
22 ## == Links ==
23 ## ===========
24 SET(_pfx "cpPlugins_")
25 TARGET_LINK_LIBRARIES(${_pfx}BaseObjects ${ITK_LIBRARIES})
26 TARGET_LINK_LIBRARIES(${_pfx}Images ${_pfx}BaseObjects)
27 TARGET_LINK_LIBRARIES(${_pfx}BoundingBoxes ${_pfx}BaseObjects)
28 TARGET_LINK_LIBRARIES(${_pfx}Meshes ${_pfx}BoundingBoxes)
29 TARGET_LINK_LIBRARIES(${_pfx}ImageIterators ${_pfx}Images)
30 TARGET_LINK_LIBRARIES(${_pfx}ImageFilters ${_pfx}Images ${_pfx}ImageIterators)
31 TARGET_LINK_LIBRARIES(${_pfx}ImageNeighborhoodIterators ${_pfx}Images)
32 TARGET_LINK_LIBRARIES(${_pfx}Paths ${_pfx}Images)
33
34 ## eof - $RCSfile$