From ba3d792fa040b6b8a74ec36923e6d22b3316db06 Mon Sep 17 00:00:00 2001 From: Leonardo Florez-Valencia Date: Sat, 26 Sep 2015 13:13:22 +0200 Subject: [PATCH] ... --- lib/CMakeLists.txt | 6 +++++ lib/fpaPlugins/CMakeLists.txt | 49 +++++++++++++++++++++++++++++++++++ lib/fpaPlugins/Host.cxx | 34 ++++++++++++++++++++++++ 3 files changed, 89 insertions(+) create mode 100644 lib/fpaPlugins/CMakeLists.txt create mode 100644 lib/fpaPlugins/Host.cxx diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 8921bc6..721d61f 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -101,4 +101,10 @@ INSTALL( DESTINATION include/fpa ) +IF(${USE_cpPlugins}) + SUBDIRS( + fpaPlugins + ) +ENDIF(${USE_cpPlugins}) + ## eof - $RCSfile$ diff --git a/lib/fpaPlugins/CMakeLists.txt b/lib/fpaPlugins/CMakeLists.txt new file mode 100644 index 0000000..5b2d62f --- /dev/null +++ b/lib/fpaPlugins/CMakeLists.txt @@ -0,0 +1,49 @@ +SET(LIBRARY_NAME fpaPlugins) + +## =============== +## = Source code = +## =============== + +FILE(GLOB LIB_HEADERS_H "*.h") +FILE(GLOB LIB_HEADERS_HPP "*.hpp") +FILE(GLOB LIB_HEADERS_HXX "*.hxx") +FILE(GLOB LIB_SOURCES_C "*.c") +FILE(GLOB LIB_SOURCES_CPP "*.cpp") +FILE(GLOB LIB_SOURCES_CXX "*.cxx") + +## ===================== +## = Compilation rules = +## ===================== + +ADD_LIBRARY( + ${LIBRARY_NAME} + SHARED + ${LIB_SOURCES_C} + ${LIB_SOURCES_CPP} + ${LIB_SOURCES_CXX} + ) +GENERATE_EXPORT_HEADER( + ${LIBRARY_NAME} + BASE_NAME ${LIBRARY_NAME} + EXPORT_MACRO_NAME ${LIBRARY_NAME}_EXPORT + EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/lib/fpaPlugins/${LIBRARY_NAME}_Export.h + STATIC_DEFINE ${LIBRARY_NAME}_BUILT_AS_STATIC + ) +#TARGET_LINK_LIBRARIES( +# ${LIBRARY_NAME} +# cpExtensions +# cpPlugins_Interface +# ) + +## ======================== +## -- Installation rules -- +## ======================== + +#INSTALL( +# TARGETS ${LIBRARY_NAME} +# RUNTIME DESTINATION bin +# LIBRARY DESTINATION lib +# ARCHIVE DESTINATION lib/static +# ) + +## eof - $RCSfile$ diff --git a/lib/fpaPlugins/Host.cxx b/lib/fpaPlugins/Host.cxx new file mode 100644 index 0000000..d264e45 --- /dev/null +++ b/lib/fpaPlugins/Host.cxx @@ -0,0 +1,34 @@ +#include +/* + #include + #include + #include + #include + #include + #include + #include + #include + #include +*/ + +/// TODO: doc +PLUMA_CONNECTOR +bool connect( pluma::Host& host ) +{ + /* + using namespace cpPlugins::Plugins; + + host.add( new ImageReaderProvider( ) ); + host.add( new ImageWriterProvider( ) ); + host.add( new MeshReaderProvider( ) ); + host.add( new MeshWriterProvider( ) ); + host.add( new MarchingCubesProvider( ) ); + host.add( new OtsuThresholdImageFilterProvider( ) ); + host.add( new RGBImageToOtherChannelsFilterProvider( ) ); + host.add( new SecondRankDiffusionTensorToPolyDataProvider( ) ); + host.add( new BinaryThresholdImageFilterProvider( ) ); + */ + return( true ); +} + +// eof - $RCSfile$ -- 2.47.1