]> Creatis software - FrontAlgorithms.git/blob - lib/Instances/CMakeLists.txt
Architecture revisited.
[FrontAlgorithms.git] / lib / Instances / CMakeLists.txt
1 SET(_pfx "")
2 SET(_all_instances)
3
4 ## ===========================
5 ## == Compile each instance ==
6 ## ===========================
7 FILE(GLOB _instances "${CMAKE_CURRENT_SOURCE_DIR}/*.i")
8
9 FOREACH(_instance ${_instances})
10   CompileInstances(
11     _lib_name
12     ${_instance} ${cpPlugins_NUMBER_OF_FILES}
13     "${_pfx}" "${prj_VERSION}" "${prj_SHORT_VERSION}"
14     )
15   LIST(APPEND _all_instances ${_lib_name})
16 ENDFOREACH(_instance)
17 SET(
18   fpa_Instances ${_all_instances}
19   CACHE INTERNAL "All valid instances." FORCE
20   )
21
22 ## ====================
23 ## == Link libraries ==
24 ## ====================
25
26 TARGET_LINK_LIBRARIES(
27   ${_pfx}fpa_MinimumSpanningTree
28   ${ITK_LIBRARIES} ${VTK_LIBRARIES} ${cpPlugins_Instances}
29   )
30
31 ## eof - $RCSfile$