]> Creatis software - FrontAlgorithms.git/blobdiff - appli/CTBronchi/CMakeLists.txt
...
[FrontAlgorithms.git] / appli / CTBronchi / CMakeLists.txt
index fccfb975998a0d52e1095dcd6c0491555a9c3fd8..d81b5e83b7f271ac663fc67fa9f0d3929350cedf 100644 (file)
@@ -1,26 +1,25 @@
+## =========================================================================
+## @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
+## =========================================================================
+
 option(fpa_BUILD_CTBronchi "Build bronchi analysis from CT images applications?" OFF)
 if(fpa_BUILD_CTBronchi)
-  configure_file(
-    CTBronchi_process.sh
-    ${PROJECT_BINARY_DIR}/CTBronchi_process.sh
-    COPYONLY
+  set(_pfx fpa_CTBronchi_)
+  set(
+    _examples
+    Vesselness
+    MoriSegmentation
+    MoriLabelling
     )
-  include_directories(
-    ${PROJECT_SOURCE_DIR}/lib
-  ${PROJECT_BINARY_DIR}/lib
-  ${PROJECT_SOURCE_DIR}/appli
-  ${PROJECT_BINARY_DIR}/appli
-  )
-set(_pfx fpa_CTBronchi_)
-set(
-  _examples
-  MoriSegmentation
-  MoriLabelling
-  )
-foreach(_e ${_examples})
-  add_executable(${_pfx}${_e} ${_e}.cxx)
-  target_link_libraries(${_pfx}${_e} fpa)
-endforeach(_e)
+  foreach(_e ${_examples})
+    BuildApplication(
+      ${_pfx}${_e}
+      SOURCE ${_e}.cxx
+      INSTALL
+      RECURRENT
+      LINKS fpa
+      )
+  endforeach(_e)
 endif(fpa_BUILD_CTBronchi)
 
 ## eof - $RCSfile$