]> Creatis software - FrontAlgorithms.git/blob - lib/Instances/CMakeLists.txt
832eaad4488c09cab198a53ff759193186230c44
[FrontAlgorithms.git] / lib / Instances / CMakeLists.txt
1 ## ===========================
2 ## == Compile each instance ==
3 ## ===========================
4 SET(
5   _all_defs
6   DataObjects
7   Filters
8   )
9
10 SET(_all_libs)
11 FOREACH(_def ${_all_defs})
12   CompileInstances(
13     fpaInstances_${_def}
14     fpa_${_def}.i
15     ${cpPlugins_CONFIG_NUMBER_OF_FILES}
16     )
17   LIST(APPEND _all_libs fpaInstances_${_def})
18 ENDFOREACH(_def)
19
20 TARGET_LINK_LIBRARIES(
21   fpaInstances_DataObjects
22   ${ITK_LIBRARIES}
23   ${VTK_LIBRARIES}
24   ${cpPlugins_Instances}
25   )
26 TARGET_LINK_LIBRARIES(
27   fpaInstances_Filters
28   fpaInstances_DataObjects
29   )
30
31 SET(
32   fpa_Instances ${_all_libs}
33   CACHE INTERNAL "All valid instances." FORCE
34   )
35
36 ## eof - $RCSfile$