)
foreach(_e ${_examples})
add_executable(fpa_example_${_e} ${_e}.cxx)
- target_link_libraries(fpa_example_${_e} ${ITK_LIBRARIES})
+ target_link_libraries(fpa_example_${_e} fpa)
endforeach(_e)
endif(BUILD_EXAMPLES)
+++ /dev/null
-// =========================================================================
-// @author Leonardo Florez Valencia
-// @email florez-l@javeriana.edu.co
-// =========================================================================
-
-#include <fpa/Base/Version.h>
-
-std::string fpa::Base::Version( )
-{
- return( "fpa_dummy" );
-}
-
-// eof - $RCSfile$
+++ /dev/null
-// =========================================================================
-// @author Leonardo Florez Valencia
-// @email florez-l@javeriana.edu.co
-// =========================================================================
-
-#ifndef __fpa__Base__Version__h__
-#define __fpa__Base__Version__h__
-
-#include <fpa/fpa_export.h>
-#include <string>
-
-namespace fpa
-{
- namespace Base
- {
- std::string FPA_EXPORT Version( );
-
- } // ecapseman
-
-} // ecapseman
-
-#endif // __fpa__Base__Version__h__
-
-// eof - $RCSfile$
## == Get source code ==
## =====================
+configure_file(Version.cxx.in "${CMAKE_CURRENT_BINARY_DIR}/Version.cxx" @ONLY)
file(GLOB_RECURSE _base_src "${CMAKE_CURRENT_SOURCE_DIR}/Base/*.cxx")
file(GLOB_RECURSE _base_hdr "${CMAKE_CURRENT_SOURCE_DIR}/Base/*.h")
file(GLOB_RECURSE _base_hrc "${CMAKE_CURRENT_SOURCE_DIR}/Base/*.hxx")
file(GLOB_RECURSE _image_hdr "${CMAKE_CURRENT_SOURCE_DIR}/Image/*.h")
file(GLOB_RECURSE _image_hrc "${CMAKE_CURRENT_SOURCE_DIR}/Image/*.hxx")
-set(_src ${_base_src} ${_image_src})
+set(_src
+ ${_base_src} ${_image_src}
+ "${CMAKE_CURRENT_BINARY_DIR}/Version.cxx"
+ )
set(_hdr ${_base_hdr} ${_image_hdr})
set(_hrc ${_base_hrc} ${_image_hrc})
--- /dev/null
+
+#include <fpa/fpa_export.h>
+#include <string>
+
+std::string FPA_EXPORT version( ) { return( "@prj_VERSION@" ); }
+
+// eof - $RCSfile$