]> Creatis software - FrontAlgorithms.git/blobdiff - examples/image/RandomWalker/CMakeLists.txt
...
[FrontAlgorithms.git] / examples / image / RandomWalker / CMakeLists.txt
similarity index 58%
rename from tests/image/RandomWalker/CMakeLists.txt
rename to examples/image/RandomWalker/CMakeLists.txt
index e0aef14528fa2fbaeb149c6a217f741f2a4f8ad2..90fd7f7e67476635ed7377cb4bdab50b5aacd6dc 100644 (file)
@@ -1,18 +1,23 @@
 ## =========================================================================
-## @author Leonardo Florez Valencia
-## @email florez-l@javeriana.edu.co
+## @author Leonardo Florez Valencia (florez-l@javeriana.edu.co)
 ## =========================================================================
 
-set(_pfx test_fpa_Image_RandomWalker_)
+set(_pfx example_fpa_Image_RandomWalker_)
 set(
-  _tests
+  _examples
   Gaussian
-  Original
-  CompareRandomWalkers
   )
+if(Eigen3_FOUND)
+  set(
+    _examples
+    ${_examples}
+    Original
+    CompareRandomWalkers
+    )
+endif(Eigen3_FOUND)
 include_directories(${PROJECT_SOURCE_DIR}/lib ${PROJECT_BINARY_DIR}/lib)
 
-foreach(_t ${_tests})
+foreach(_t ${_examples})
   add_executable(${_pfx}${_t} ${_t}.cxx)
   target_link_libraries(${_pfx}${_t} fpa)
 endforeach(_t)