]> Creatis software - FrontAlgorithms.git/blobdiff - appli/CTBronchi/CMakeLists.txt
...
[FrontAlgorithms.git] / appli / CTBronchi / CMakeLists.txt
index b5f19be277946146496cb99752650b68e4474036..be25477167f2a9469390de5c032cabc74a92741a 100644 (file)
@@ -4,36 +4,58 @@
 
 option(fpa_BUILD_CTBronchi "Build bronchi analysis from CT images applications?" OFF)
 if(fpa_BUILD_CTBronchi)
-  set(_pfx fpa_CTBronchi_)
-  set(
-    _examples
-    Vesselness
-    MoriSegmentation
-    MoriLabelling
-    FastRandomWalker
-    SliceBySliceRandomWalker
-    AndSegmentations
-    Skeleton
+  BuildLibrary(
+    fpa_CTBronchi SHARED
+    INSTALL_ALL
+    SOURCE
+    Filter.h Filter.hxx
+    Image.h Image.hxx
+    Process.h Process.cxx
+    LINKS fpa cpPlugins::tclap
     )
-  foreach(_e ${_examples})
-    BuildApplication(
-      ${_pfx}${_e}
-      SOURCE ${_e}.cxx
-      INSTALL
-      RECURRENT
-      LINKS fpa cpPlugins::tclap
-      )
-  endforeach(_e)
 
-  configure_file(
-    Process.sh
-    ${PROJECT_BINARY_DIR}/${_pfx}Process.sh
-    COPYONLY
-    )
-  install(
-    FILES ${PROJECT_BINARY_DIR}/${_pfx}Process.sh
-    DESTINATION bin
+  BuildApplication(
+    fpa_CTBronchi_CommandLineProcess
+    SOURCE CommandLineProcess.cxx
+    INSTALL
+    RECURRENT
+    LINKS fpa_CTBronchi
     )
+
 endif(fpa_BUILD_CTBronchi)
 
+#option(fpa_BUILD_CTBronchi "Build bronchi analysis from CT images applications?" OFF)
+#if(fpa_BUILD_CTBronchi)
+#  set(_pfx fpa_CTBronchi_)
+#  set(
+#    _examples
+#    Vesselness
+#    MoriSegmentation
+#    MoriLabelling
+#    FastRandomWalker
+#    SliceBySliceRandomWalker
+#    AndSegmentations
+#    Skeleton
+#    )
+#  foreach(_e ${_examples})
+#    BuildApplication(
+#      ${_pfx}${_e}
+#      SOURCE ${_e}.cxx
+#      INSTALL
+#      RECURRENT
+#      LINKS fpa cpPlugins::tclap
+#      )
+#  endforeach(_e)
+
+#  configure_file(
+#    Process.sh
+#    ${PROJECT_BINARY_DIR}/${_pfx}Process.sh
+#    COPYONLY
+#    )
+#  install(
+#    FILES ${PROJECT_BINARY_DIR}/${_pfx}Process.sh
+#    DESTINATION bin
+#    )
+#endif(fpa_BUILD_CTBronchi)
+
 ## eof - $RCSfile$