From: Leonardo Flórez-Valencia Date: Tue, 26 Sep 2017 21:40:47 +0000 (-0500) Subject: ... X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7a23dc0de3cc3cf9ffb234e1c3d4a160d0235dd0;p=FrontAlgorithms.git ... --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 260cb37..184f556 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,3 @@ -#find_package(Eigen3 CONFIG REQUIRED) -#include(${EIGEN3_USE_FILE}) - ## ========================================================================= ## @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co) ## ========================================================================= @@ -36,14 +33,14 @@ if(NOT cpPlugins_FOUND) include(${ITK_USE_FILE}) endif(NOT cpPlugins_FOUND) -## == Find eigen3 +## == Find eigen3 (http://eigen.tuxfamily.org) find_package(Eigen3 CONFIG) if(Eigen3_FOUND) include(${EIGEN3_USE_FILE}) endif(Eigen3_FOUND) ## == Build packages -subdirs(lib examples) +subdirs(lib examples appli) ## == Installation commands include(cmake/InstallCommands.cmake) diff --git a/appli/CMakeLists.txt b/appli/CMakeLists.txt index a82c437..dbcde1a 100644 --- a/appli/CMakeLists.txt +++ b/appli/CMakeLists.txt @@ -1,4 +1,7 @@ +## ========================================================================= +## @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co) +## ========================================================================= -subdirs(CTBronchi) +subdirs(CTArteries) ## eof - $RCSfile$ diff --git a/appli/CTArteries/CMakeLists.txt b/appli/CTArteries/CMakeLists.txt new file mode 100644 index 0000000..1fae505 --- /dev/null +++ b/appli/CTArteries/CMakeLists.txt @@ -0,0 +1,7 @@ +## ========================================================================= +## @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co) +## ========================================================================= + +BuildApplication(CTArteries) + +## eof - $RCSfile$ diff --git a/appli/CTArteries/CTArteries.cxx b/appli/CTArteries/CTArteries.cxx new file mode 100644 index 0000000..907c053 --- /dev/null +++ b/appli/CTArteries/CTArteries.cxx @@ -0,0 +1,8 @@ +#include +int main( int argc, char* argv[] ) +{ + std::cout << "hola" << std::endl; + return( 0 ); +} + +// eof - $RCSfile$ diff --git a/cmake/Functions.cmake b/cmake/Functions.cmake index 8ca0f15..8217173 100644 --- a/cmake/Functions.cmake +++ b/cmake/Functions.cmake @@ -138,4 +138,14 @@ BuildLibrary(${lib} ${typ} "${_files}" ${maj} ${min} ${rel} ${ARGN}) endfunction() +## ------------------------------------------------------------------------- +function(BuildApplication app) +BuildLibraryRecursive( + _${app}_ STATIC ${CMAKE_CURRENT_SOURCE_DIR} + 0 0 0 + ) +## ${EXECUTABLE_TYPE} +## target_link_libraries(${app} _${app}_) +endfunction() + ## eof - $RCSfile$