FILES
"${project_config}"
"${version_config}"
- "${CMAKE_CURRENT_SOURCE_DIR}/cmake/fpaBaseConfig.cmake"
+ "${CMAKE_CURRENT_SOURCE_DIR}/cmake/${PROJECT_NAME}BaseConfig.cmake"
+ DESTINATION "${config_install_dir}"
+ )
+install(
+ EXPORT "${targets_export_name}"
+ NAMESPACE "${namespace}"
DESTINATION "${config_install_dir}"
)
-#install(
-# EXPORT "${targets_export_name}"
-# NAMESPACE "${namespace}"
-# DESTINATION "${config_install_dir}"
-# )
## 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$
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(_hdr ${_base_hdr} ${_image_hdr})
+set(_hrc ${_base_hrc} ${_image_hrc})
+
## =====================
## == Compile library ==
## =====================
-#add_library(fpa SHARED ${_src} ${_hdr} ${_hrc})
-#generate_export_header(fpa)
-#set_property(TARGET fpa PROPERTY VERSION ${prj_VERSION})
-#set_property(TARGET fpa PROPERTY SOVERSION ${prj_SHORT_VERSION})
-#set_property(
-# TARGET fpa PROPERTY INTERFACE_fpa_MAJOR_VERSION ${prj_MAJ_VERSION}
-# )
-#set_property(
-# TARGET fpa APPEND PROPERTY COMPATIBLE_INTERFACE_STRING ${prj_MAJ_VERSION}
-# )
-#target_link_libraries(fpa PUBLIC ${VTK_LIBRARIES} ${ITK_LIBRARIES})
+add_library(fpa SHARED ${_src} ${_hdr} ${_hrc})
+generate_export_header(fpa)
+set_property(TARGET fpa PROPERTY VERSION ${prj_VERSION})
+set_property(TARGET fpa PROPERTY SOVERSION ${prj_SHORT_VERSION})
+set_property(
+ TARGET fpa PROPERTY INTERFACE_fpa_MAJOR_VERSION ${prj_MAJ_VERSION}
+ )
+set_property(
+ TARGET fpa APPEND PROPERTY COMPATIBLE_INTERFACE_STRING ${prj_MAJ_VERSION}
+ )
+target_link_libraries(fpa PUBLIC ${VTK_LIBRARIES} ${ITK_LIBRARIES})
## ========================
## == Installation rules ==
## ========================
-#install(
-# TARGETS fpa
-# EXPORT "${targets_export_name}"
-# LIBRARY DESTINATION "lib"
-# ARCHIVE DESTINATION "lib"
-# RUNTIME DESTINATION "bin"
-# INCLUDES DESTINATION "${include_install_dir}"
-# )
+install(
+ TARGETS fpa
+ EXPORT "${targets_export_name}"
+ LIBRARY DESTINATION "lib"
+ ARCHIVE DESTINATION "lib"
+ RUNTIME DESTINATION "bin"
+ INCLUDES DESTINATION "${include_install_dir}"
+ )
install(
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
DESTINATION "${include_install_dir}"
DESTINATION "${include_install_dir}"
FILES_MATCHING PATTERN "*.hxx"
)
-#install(
-# FILES "${CMAKE_CURRENT_BINARY_DIR}/fpa_export.h"
-# DESTINATION "${include_install_dir}/fpa"
-# )
+install(
+ FILES "${CMAKE_CURRENT_BINARY_DIR}/fpa_export.h"
+ DESTINATION "${include_install_dir}/fpa"
+ )
## eof - $RCSfile$