]> Creatis software - cpPlugins.git/commitdiff
...
authorLeonardo Flórez-Valencia <florez-l@javeriana.edu.co>
Fri, 11 Nov 2016 20:19:09 +0000 (15:19 -0500)
committerLeonardo Flórez-Valencia <florez-l@javeriana.edu.co>
Fri, 11 Nov 2016 20:19:09 +0000 (15:19 -0500)
22 files changed:
CMakeLists.txt
appli/bash/Config.h.in
appli/bash/CreateInstances.cxx
cmake/Functions.cmake
cmake/cpPluginsConfig.cmake.in
lib/CMakeLists.txt
lib/Instances/BaseObjects.i
lib/Instances/CMakeLists.txt
lib/cpPluginsExtensions/Extensions.i [moved from plugins/Extensions/Extensions.i with 100% similarity]
lib/cpPluginsExtensions/PolyLineParametricPath.cxx [moved from plugins/Extensions/PolyLineParametricPath.cxx with 96% similarity]
lib/cpPluginsExtensions/PolyLineParametricPath.d [moved from plugins/Extensions/PolyLineParametricPath.d with 100% similarity]
lib/cpPluginsExtensions/PolyLineParametricPath.h [moved from plugins/Extensions/PolyLineParametricPath.h with 96% similarity]
lib/cpPluginsExtensions/Simple3DCurve.cxx [moved from plugins/Extensions/Simple3DCurve.cxx with 97% similarity]
lib/cpPluginsExtensions/Simple3DCurve.d [moved from plugins/Extensions/Simple3DCurve.d with 100% similarity]
lib/cpPluginsExtensions/Simple3DCurve.h [moved from plugins/Extensions/Simple3DCurve.h with 96% similarity]
lib/cpPluginsExtensions/Skeleton.cxx [moved from plugins/Extensions/Skeleton.cxx with 97% similarity]
lib/cpPluginsExtensions/Skeleton.d [moved from plugins/Extensions/Skeleton.d with 100% similarity]
lib/cpPluginsExtensions/Skeleton.h [moved from plugins/Extensions/Skeleton.h with 96% similarity]
plugins/CMakeLists.txt
plugins/GenericFilters/PolyLineParametricPathToSimple3DCurve.cxx
plugins/IO/ImageJSkeletonWriter.cxx
plugins/ImageSliceFilters/CPRImageFilter.cxx

index 726395909b36eef4c1799e6ca96eb4f40d44f2ea..2e161e434f4b0d3a23e46766c6fa9c864e507b4c 100644 (file)
@@ -45,7 +45,6 @@ INCLUDE(cmake/Functions.cmake)
 ## == Build different parts ==
 ## ===========================
 
-#SUBDIRS(appli cmake lib plugins)
-SUBDIRS(appli lib plugins)
+SUBDIRS(appli cmake lib plugins)
 
 ## eof - $RCSfile$
index 8306fe58fd74fc468e48dd1020879f7a5d59eef7..09eb4170633fe98fc6b30fb8e131b926050428e4 100644 (file)
@@ -23,6 +23,7 @@
 #define cpPlugins_CONFIG_DIFFUSIONTENSORS   "@cpPlugins_CONFIG_DIFFUSIONTENSORS@"
 #define cpPlugins_CONFIG_MATRICES           "@cpPlugins_CONFIG_MATRICES@"
 #define cpPlugins_ALL_CONFIGS               "@cpPlugins_ALL_CONFIGS@"
+#define cpPlugins_CONFIG_NUMBER_OF_FILES    @cpPlugins_CONFIG_NUMBER_OF_FILES@
 
 // -------------------------------------------------------------------------
 #define cpPlugins_bash_OS_@CMAKE_SYSTEM_NAME@
index 6ffe2dc628d1fe83859a98464ed8ad885f5cf52d..95d41fa2476329f365a67b526d4dc40a07e4e32e 100644 (file)
@@ -4,19 +4,19 @@
 int main( int argc, char* argv[] )
 {
   // Get inputs
-  if( argc < 5 )
+  if( argc < 4 )
   {
     std::cerr
       << "Usage: " << argv[ 0 ]
-      << " definitons_file library_name output_path number_of_sources"
+      << " definitons_file library_name output_prefix"
       << std::endl;
     return( 1 );
 
   } // fi
   std::string definitions_filename = argv[ 1 ];
   std::string library_name = argv[ 2 ];
-  std::string output_path = argv[ 3 ];
-  unsigned int number_of_sources = std::atoi( argv[ 4 ] );
+  std::string output_prefix = argv[ 3 ];
+  unsigned int number_of_sources = cpPlugins_CONFIG_NUMBER_OF_FILES;
 
   // Read inputs
   std::string definitions_buffer;
@@ -105,7 +105,7 @@ int main( int argc, char* argv[] )
 
   // Write header
   std::stringstream header_filename;
-  header_filename << output_path << "/" << library_name << ".h";
+  header_filename << output_prefix << ".h";
   if( !( cpPlugins_bash::Write( header.str( ), header_filename.str( ) ) ) )
   {
     std::cerr << "Error writing header file." << std::endl;
@@ -151,7 +151,7 @@ int main( int argc, char* argv[] )
       << "#include <" << library_name << "_Export.h>"
       << std::endl;
     source
-      << "#include <" << output_path<< "/" << library_name << ".h>"
+      << "#include <" << output_prefix << ".h>"
       << std::endl << std::endl;
     if( tfiles.size( ) > 0 )
     {
@@ -184,7 +184,7 @@ int main( int argc, char* argv[] )
     source << std::endl << "// eof" << std::endl;
     std::stringstream source_file;
     source_file
-      << output_path << "/" << library_name << "_" << f_id << ".cxx";
+      << output_prefix << "_" << f_id << ".cxx";
     if( !( cpPlugins_bash::Write( source.str( ), source_file.str( ) ) ) )
     {
       std::cerr << "Error writing source code." << std::endl;
index 9beaaae0944581c1a8bc4545f0952b9ff207e709..aebf89fa6749738c57a476d73dee13537aafd92c 100644 (file)
@@ -60,6 +60,7 @@ ENDFUNCTION()
 ## -------------------------------------------------------------------------
 FUNCTION(
   PrepareSourceFiles
+  out_lib_name
   out_sources_list
   out_headers_list
   out_headers_paths
@@ -69,6 +70,7 @@ SET(_sources_extensions .c .cpp .cxx)
 SET(_headers_extensions .h .hpp .hxx)
 SET(_qt_ui_extensions .ui)
 SET(_demangler_extensions .d)
+SET(_instances_extensions .i)
 
 ## -- Configure inputs
 SET(_all_files)
@@ -98,12 +100,14 @@ SET(_srcs)
 SET(_hdrs)
 SET(_qts)
 SET(_demanglers)
+SET(_instances)
 FOREACH(_file ${_all_files})
   GET_FILENAME_COMPONENT(_ext ${_file} EXT)
   LIST(FIND _sources_extensions ${_ext} _src)
   LIST(FIND _headers_extensions ${_ext} _hdr)
   LIST(FIND _qt_ui_extensions ${_ext} _ui)
   LIST(FIND _demangler_extensions ${_ext} _dem)
+  LIST(FIND _instances_extensions ${_ext} _ins)
   IF(NOT ${_src} EQUAL -1)
     LIST(APPEND _srcs ${_file})
   ENDIF(NOT ${_src} EQUAL -1)
@@ -116,6 +120,9 @@ FOREACH(_file ${_all_files})
   IF(NOT ${_dem} EQUAL -1)
     LIST(APPEND _demanglers ${_file})
   ENDIF(NOT ${_dem} EQUAL -1)
+  IF(NOT ${_ins} EQUAL -1)
+    LIST(APPEND _instances ${_file})
+  ENDIF(NOT ${_ins} EQUAL -1)
 ENDFOREACH(_file)
 
 # -- Prepare Qt4-based code
@@ -156,6 +163,36 @@ FOREACH(_d ${_demanglers})
   LIST(APPEND _hdrs ${_d_out})
 ENDFOREACH(_d)
 
+## -- Create instances
+FOREACH(_i ${_instances})
+  STRING(
+    REPLACE
+    ${PROJECT_SOURCE_DIR}
+    ${PROJECT_BINARY_DIR}
+    _i_bin
+    ${_i}
+    )
+  GET_FILENAME_COMPONENT(_i_path ${_i_bin} DIRECTORY)
+  GET_FILENAME_COMPONENT(_out_name ${_i} NAME_WE)
+
+  ## -- Infere source code filenames
+  MATH(EXPR _last_range "${cpPlugins_CONFIG_NUMBER_OF_FILES}-1")
+  SET(_out_code "${_i_path}/${_out_name}.h")
+  LIST(APPEND _hdrs ${_i_path}/${_out_name}.h)
+  FOREACH(_n RANGE 0 ${_last_range})
+    LIST(APPEND _out_code ${_i_path}/${_out_name}_${_n}.cxx)
+    LIST(APPEND _srcs ${_i_path}/${_out_name}_${_n}.cxx)
+  ENDFOREACH(_n)
+
+  ## -- Command to write source code
+  ADD_CUSTOM_COMMAND(
+    OUTPUT ${_out_code}
+    DEPENDS ${cpPlugins_bash_CreateInstances_APP} ${_i}
+    COMMAND ${CMAKE_COMMAND} -E make_directory ${_i_path}
+    COMMAND ${cpPlugins_bash_CreateInstances_APP} ${_i} ${out_lib_name} ${_i_path}/${_out_name}
+    )
+ENDFOREACH(_i)
+
 ## -- Real compilation
 SET(_hdrs_paths)
 FOREACH(_hdr ${_hdrs})
@@ -178,7 +215,7 @@ FUNCTION(
   lib_name
   lib_type
   )
-PrepareSourceFiles(_srcs _hdrs _paths ${ARGN})
+PrepareSourceFiles(${lib_name} _srcs _hdrs _paths ${ARGN})
 INCLUDE_DIRECTORIES(
   ${_paths}
   ${CMAKE_CURRENT_SOURCE_DIR}
@@ -214,87 +251,23 @@ FILE(GLOB_RECURSE _files "${lib_dir}/*")
 CreateLib(${lib_name} ${lib_type} ${_files} ${ARGN})
 ENDFUNCTION()
 
-## -------------------------------------------------------------------------
-FUNCTION(
-  CompileInstances
-  out_lib_name
-  def_file
-  number_of_files
-  )
-
-### -- Configure inputs to be cmake-path compatible
-SET(_src_dir ${CMAKE_CURRENT_SOURCE_DIR})
-SET(_bin_dir ${CMAKE_CURRENT_BINARY_DIR})
-SET(_def_file "${_src_dir}/${def_file}")
-
-## -- Infere source code filenames
-MATH(EXPR _last_range "${number_of_files}-1")
-SET(_out_code "${_bin_dir}/${out_lib_name}.h")
-FOREACH(_n RANGE 0 ${_last_range})
-  LIST(APPEND _out_code ${_bin_dir}/${out_lib_name}_${_n}.cxx)
-ENDFOREACH(_n)
-
-## -- Command to write source code
-ADD_CUSTOM_COMMAND(
-  OUTPUT ${_out_code}
-  DEPENDS ${cpPlugins_bash_CreateInstances_APP} ${_def_file}
-  COMMAND ${cpPlugins_bash_CreateInstances_APP} ${_def_file} ${out_lib_name} ${_bin_dir} ${number_of_files}
-  )
-
-## -- Create library
-CreateLib(${out_lib_name} SHARED "${_out_code}")
-
-ENDFUNCTION()
-
 ## -------------------------------------------------------------------------
 FUNCTION(
   CreatePlugin
   lib_name
   lib_dir
-  number_of_files
   )
-
 GET_FILENAME_COMPONENT(_lib_dir ${lib_dir} REALPATH)
 FILE(GLOB_RECURSE _files "${_lib_dir}/*")
 SET(_hdr_to_wrap)
-SET(_instances)
 FOREACH(_file ${_files})
   FILE(READ ${_file} _txt)
   STRING(FIND "${_txt}" "cpPluginsObject" _res)
   IF(NOT ${_res} EQUAL -1)
     LIST(APPEND _hdr_to_wrap ${_file})
   ENDIF(NOT ${_res} EQUAL -1)
-  GET_FILENAME_COMPONENT(_ext ${_file} EXT)
-  IF(${_ext} STREQUAL ".i")
-    LIST(APPEND _instances ${_file})
-  ENDIF(${_ext} STREQUAL ".i")
 ENDFOREACH(_file)
 
-IF(_instances)
-  FOREACH(_instance ${_instances})
-    STRING(
-      REPLACE
-      ${PROJECT_SOURCE_DIR}
-      ${PROJECT_BINARY_DIR}
-      _out_dir
-      ${_lib_dir}
-      )
-    MATH(EXPR _last_range "${number_of_files}-1")
-    SET(_out_code "${_out_dir}/${lib_name}.h")
-    FOREACH(_n RANGE 0 ${_last_range})
-      LIST(APPEND _out_code ${_out_dir}/${lib_name}_${_n}.cxx)
-    ENDFOREACH(_n)
-
-    ADD_CUSTOM_COMMAND(
-      OUTPUT ${_out_code}
-      DEPENDS ${cpPlugins_bash_CreateInstances_APP} ${_instance}
-      COMMAND ${CMAKE_COMMAND} -E make_directory ${_out_dir}
-      COMMAND ${cpPlugins_bash_CreateInstances_APP} ${_instance} ${lib_name} ${_out_dir} ${number_of_files}
-      )
-    LIST(APPEND _files ${_out_code})
-  ENDFOREACH(_instance)
-ENDIF(_instances)
-
 IF(_hdr_to_wrap)
   STRING(
     REPLACE
@@ -326,7 +299,7 @@ FUNCTION(
 OPTION(BUILD_${app_name} "Build ${app_name}" OFF)
 IF(BUILD_${app_name})
   FILE(GLOB_RECURSE _files "${app_dir}/*")
-  PrepareSourceFiles(_srcs _hdrs _paths ${_files} ${ARGN})
+  PrepareSourceFiles(${app_name} _srcs _hdrs _paths ${_files} ${ARGN})
   INCLUDE_DIRECTORIES(
     ${_paths}
     ${CMAKE_CURRENT_SOURCE_DIR}
index ab0456cc23a2a7b52bb3446b846c61a6b654b39c..b6fad2d873b10a930e348dbff8602fbc2029c860 100644 (file)
@@ -51,33 +51,6 @@ ENDIF(_l_locations)
 ## == Find include directories ==
 ## ==============================
 
-#SET(cpPlugins_All_Headers "@cpPlugins_All_Headers@" CACHE STRING "Internal")
-#MARK_AS_ADVANCED(FORCE cpPlugins_All_Headers)
-#SET(_header_paths
-#  "@PROJECT_SOURCE_DIR@/lib"
-#  "@PROJECT_BINARY_DIR@/lib"
-#  "@PROJECT_SOURCE_DIR@/lib/Instances"
-#  "@PROJECT_BINARY_DIR@/lib/Instances"
-#  "@CMAKE_INSTALL_PREFIX@/include"
-#  )
-#FOREACH(_h ${cpPlugins_All_Headers})
-#  GET_FILENAME_COMPONENT(_h_name ${_h} NAME)
-#  GET_FILENAME_COMPONENT(_h_dir ${_h} DIRECTORY)
-#  FIND_PATH(
-#    _loc_${_h_name} ${_h_name}
-#    HINTS
-#    ${_header_paths}
-#    ${_h_dir}
-#    )
-#  IF(_loc_${_h_name})
-#    LIST(APPEND _header_paths ${_loc_${_h_name}})
-#    LIST(REMOVE_DUPLICATES _header_paths)
-#  ELSE(_loc_${_h_name})
-#    MESSAGE(FATAL_ERROR "Please configure where is ${_h_name}")
-#  ENDIF(_loc_${_h_name})
-#ENDFOREACH(_h ${cpPlugins_All_Headers})
-#MESSAGE(STATUS ${_header_paths})
-
 ## TODO: this is not completely correct!!!
 INCLUDE_DIRECTORIES(
   @CMAKE_INSTALL_PREFIX@/include
index e22264656433090548ba477665e65bc5c5b73f63..6d0c6f9fd948e6e99e7e7b4621b47ef0b6c8ed92 100644 (file)
@@ -50,7 +50,59 @@ IF(USE_QT4)
   TARGET_LINK_LIBRARIES(
     cpBaseQtApplication
     cpPlugins cpExtensions
-  )
+    )
 ENDIF(USE_QT4)
 
+CompileLibFromDir(cpPluginsExtensions SHARED cpPluginsExtensions)
+TARGET_LINK_LIBRARIES(cpPluginsExtensions cpPlugins cpExtensions)
+
+## ====================
+## == Base libraries ==
+## ====================
+
+IF(USE_QT4)
+  SET(
+    cpPlugins_BaseLibraries
+    cp_tinyxml2
+    cp_QCustomPlot
+    cpExtensions
+    cpPlugins
+    CACHE INTERNAL "All locally compiled libraries." FORCE
+    )
+ELSE(USE_QT4)
+  SET(
+    cpPlugins_BaseLibraries
+    cp_tinyxml2
+    cpExtensions
+    cpPlugins
+    CACHE INTERNAL "All locally compiled libraries." FORCE
+    )
+ENDIF(USE_QT4)
+
+## ===================================
+## == Libraries to dynamically load ==
+## ===================================
+
+SET(_pre ${CMAKE_SHARED_LIBRARY_PREFIX})
+SET(_suf ${CMAKE_SHARED_LIBRARY_SUFFIX})
+
+SET(cpPlugins_DynLibs "${CMAKE_INSTALL_PREFIX}/bin/${_pre}cpExtensions${_suf}")
+LIST(APPEND cpPlugins_DynLibs "${CMAKE_INSTALL_PREFIX}/lib/${_pre}cpExtensions${_suf}")
+LIST(APPEND cpPlugins_DynLibs "${LIBRARY_OUTPUT_PATH}/${_pre}cpExtensions${_suf}")
+FOREACH(_lib ${cpPlugins_Instances})
+  LIST(APPEND cpPlugins_DynLibs "${CMAKE_INSTALL_PREFIX}/bin/${_pre}${_lib}${_suf}")
+  LIST(APPEND cpPlugins_DynLibs "${CMAKE_INSTALL_PREFIX}/lib/${_pre}${_lib}${_suf}")
+  LIST(APPEND cpPlugins_DynLibs "${LIBRARY_OUTPUT_PATH}/${_pre}${_lib}${_suf}")
+ENDFOREACH(_lib)
+LIST(APPEND cpPlugins_DynLibs "${VTK_INSTALL_PREFIX}/bin/*vtk*${_suf}")
+LIST(APPEND cpPlugins_DynLibs "${VTK_INSTALL_PREFIX}/lib/*vtk*${_suf}")
+LIST(APPEND cpPlugins_DynLibs "${ITK_INSTALL_PREFIX}/bin/*itk*${_suf}")
+LIST(APPEND cpPlugins_DynLibs "${ITK_INSTALL_PREFIX}/lib/*itk*${_suf}")
+LIST(APPEND cpPlugins_DynLibs "${ITK_INSTALL_PREFIX}/bin/*ITK*${_suf}")
+LIST(APPEND cpPlugins_DynLibs "${ITK_INSTALL_PREFIX}/lib/*ITK*${_suf}")
+FILE(WRITE ${PROJECT_BINARY_DIR}/cpPlugins_Libraries.config "")
+FOREACH(_lib ${cpPlugins_DynLibs})
+  FILE(APPEND ${PROJECT_BINARY_DIR}/cpPlugins_Libraries.config "${_lib}\n")
+ENDFOREACH(_lib)
+
 ## eof - $RCSfile$
index 89533e7a5e665fb43f631ef28a4c52f5dfad92fd..1d3d5b77e37704f0cb9bc359c460886c2e896959 100644 (file)
@@ -1,7 +1,7 @@
 header #define ITK_MANUAL_INSTANTIATION
 
 define arrays=Array2D;Array;#color_pixels#
-define fixed_dims=#visual_dims#;4;6;8
+define fixed_dims=#visual_dims#;1;4;6;8
 
 tinclude itk#arrays#:h|hxx
 tinclude itkFixedArray:h|hxx
index c418df6fe3903dcaa52595e8decb4c9d0b6e01c0..71b87a72a331d55c9b7b7f25f82fb4977b035906 100644 (file)
@@ -17,11 +17,7 @@ SET(
 SET(_all_libs)
 FOREACH(_def ${_all_defs})
   SET(_name ${_p}${_def})
-  CompileInstances(
-    ${_name}
-    ${_def}.i
-    ${cpPlugins_CONFIG_NUMBER_OF_FILES}
-    )
+  CreateLib(${_name} SHARED ${CMAKE_CURRENT_SOURCE_DIR}/${_def}.i)
   LIST(APPEND _all_libs ${_name})
 ENDFOREACH(_def)
 SET(
similarity index 96%
rename from plugins/Extensions/PolyLineParametricPath.cxx
rename to lib/cpPluginsExtensions/PolyLineParametricPath.cxx
index cb4a6be3bca149b0e86e0fa5c899ac6e2dd20840..ee12798756df2624e9689836d9a012cb44c9de69 100644 (file)
@@ -1,4 +1,4 @@
-#include <Extensions/PolyLineParametricPath.h>
+#include <cpPluginsExtensions/PolyLineParametricPath.h>
 #include <cpExtensions/Visualization/PolyLineParametricPathToPolyData.h>
 #include <cpExtensions/DataStructures/PolyLineParametricPath.h>
 
similarity index 96%
rename from plugins/Extensions/PolyLineParametricPath.h
rename to lib/cpPluginsExtensions/PolyLineParametricPath.h
index 566a4be3877b36ab4506fa667fc91210847d95a7..d2c84fe24b4bb39f1ec176001b64c57280323587 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <cpPluginsExtensions_Export.h>
 #include <cpPlugins/BaseObjects/DataObject.h>
-#include <Extensions/PolyLineParametricPath_Demanglers.h>
+#include <cpPluginsExtensions/PolyLineParametricPath_Demanglers.h>
 #include <vtkSmartPointer.h>
 
 // -------------------------------------------------------------------------
similarity index 97%
rename from plugins/Extensions/Simple3DCurve.cxx
rename to lib/cpPluginsExtensions/Simple3DCurve.cxx
index 25aa5a1487269bac67654f1a75b3697651be950b..86db732ba7fe2e746d4703514cad03d62662529e 100644 (file)
@@ -1,4 +1,4 @@
-#include <Extensions/Simple3DCurve.h>
+#include <cpPluginsExtensions/Simple3DCurve.h>
 #include <cpExtensions/DataStructures/Simple3DCurve.h>
 #include <cpExtensions/Visualization/Simple3DCurveToPolyData.h>
 
similarity index 96%
rename from plugins/Extensions/Simple3DCurve.h
rename to lib/cpPluginsExtensions/Simple3DCurve.h
index cb681764789def7a4984632d48d29a4a406b7e8a..2c18f67bdf2fa86ac274556e8abd7951b301e598 100644 (file)
@@ -4,7 +4,7 @@
 #include <cpPluginsExtensions_Export.h>
 #include <cpPlugins/BaseObjects/DataObject.h>
 #include <vtkSmartPointer.h>
-#include <Extensions/Simple3DCurve_Demanglers.h>
+#include <cpPluginsExtensions/Simple3DCurve_Demanglers.h>
 
 // -------------------------------------------------------------------------
 class vtkPolyDataAlgorithm;
similarity index 97%
rename from plugins/Extensions/Skeleton.cxx
rename to lib/cpPluginsExtensions/Skeleton.cxx
index 9e17f629a9255a184a61252b0c7175644d7ed701..a7981ca415d8e6395616490d7e943244f6e09eba 100644 (file)
@@ -1,4 +1,4 @@
-#include <Extensions/Skeleton.h>
+#include <cpPluginsExtensions/Skeleton.h>
 #include <cpExtensions/Visualization/SkeletonToPolyData.h>
 #include <cpExtensions/DataStructures/Skeleton.h>
 
similarity index 96%
rename from plugins/Extensions/Skeleton.h
rename to lib/cpPluginsExtensions/Skeleton.h
index 839da1748094c6230f0e63870470e7ba84170ba2..0be2901bd78f798fd0c2e9f9b0b2101b2211634a 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <cpPluginsExtensions_Export.h>
 #include <cpPlugins/BaseObjects/DataObject.h>
-#include <Extensions/Skeleton_Demanglers.h>
+#include <cpPluginsExtensions/Skeleton_Demanglers.h>
 #include <vtkSmartPointer.h>
 
 // -------------------------------------------------------------------------
index 99f07e0d645c71d04dbaeb12ffa234532ded8fd2..7ca868798bed0b934e178df7d1e8a0acfe264ef9 100644 (file)
@@ -4,7 +4,6 @@
 
 SET(
   _dirlist
-  Extensions
   AnisotropicDiffusion
   GenericFilters
   ImageArithmeticFilters
@@ -22,9 +21,9 @@ SET(
   Widgets
   )
 
-#IF(ParabolicMorphology_LOADED)
-#  LIST(APPEND _dirlist ImageParaMorphologyFilters)
-#ENDIF(ParabolicMorphology_LOADED)
+IF(ParabolicMorphology_LOADED)
+  LIST(APPEND _dirlist ImageParaMorphologyFilters)
+ENDIF(ParabolicMorphology_LOADED)
 
 ## ===============================
 ## == Build each plugin library ==
@@ -37,7 +36,7 @@ INCLUDE_DIRECTORIES(
   ${PROJECT_BINARY_DIR}/lib/Instances
   )
 FOREACH(_dir ${_dirlist})
-  CreatePlugin(cpPlugins${_dir} ${_dir} ${cpPlugins_CONFIG_NUMBER_OF_FILES})
+  CreatePlugin(cpPlugins${_dir} ${_dir})
   TARGET_LINK_LIBRARIES(
     cpPlugins${_dir}
     cpPlugins cpExtensions
@@ -49,24 +48,28 @@ TARGET_LINK_LIBRARIES(
   cpPluginsIO
   cpPluginsExtensions
   )
-
-#TARGET_LINK_LIBRARIES(
-#  cpPluginsImageDistanceMaps
-#  cpPluginsImageThresholdFilters
-#  )
-#TARGET_LINK_LIBRARIES(
-#  cpPluginsImageSliceFilters
-#  cpPluginsImageGenericFilters
-#  )
-#TARGET_LINK_LIBRARIES(
-#  cpPluginsImageGradientFilters
-#  cpPluginsImageGenericFilters
-#  )
-#IF(ParabolicMorphology_LOADED)
-#  TARGET_LINK_LIBRARIES(
-#    cpPluginsImageParaMorphologyFilters
-#    cpPluginsImageThresholdFilters
-#    )
-#ENDIF(ParabolicMorphology_LOADED)
+TARGET_LINK_LIBRARIES(
+  cpPluginsImageDistanceMaps
+  cpPluginsImageThresholdFilters
+  )
+TARGET_LINK_LIBRARIES(
+  cpPluginsGenericFilters
+  cpPluginsExtensions
+  )
+TARGET_LINK_LIBRARIES(
+  cpPluginsImageSliceFilters
+  cpPluginsImageGenericFilters
+  cpPluginsExtensions
+  )
+TARGET_LINK_LIBRARIES(
+  cpPluginsImageGradientFilters
+  cpPluginsImageGenericFilters
+  )
+IF(ParabolicMorphology_LOADED)
+  TARGET_LINK_LIBRARIES(
+    cpPluginsImageParaMorphologyFilters
+    cpPluginsImageThresholdFilters
+    )
+ENDIF(ParabolicMorphology_LOADED)
 
 ## eof - $RSCfile$
index af6facf9438bcecfadeb13a8e22ec9d6a8b9d42c..77a9ea1116b9f47523b0994ec393c85d85e446f6 100644 (file)
@@ -1,6 +1,6 @@
 #include <GenericFilters/PolyLineParametricPathToSimple3DCurve.h>
-#include <Extensions/PolyLineParametricPath.h>
-#include <Extensions/Simple3DCurve.h>
+#include <cpPluginsExtensions/PolyLineParametricPath.h>
+#include <cpPluginsExtensions/Simple3DCurve.h>
 
 #include <cpExtensions/DataStructures/PolyLineParametricPath.h>
 #include <cpExtensions/DataStructures/Simple3DCurve.h>
index 7d230dbe14d89208c8177f64e46f6a68c5f0e656..482000f31c9be1192535bc2cd4709914a5d207b4 100644 (file)
@@ -1,7 +1,7 @@
 #include <IO/ImageJSkeletonWriter.h>
 #include <cpPlugins/QT/SaveFileDialog.h>
 
-#include <Extensions/Skeleton.h>
+#include <cpPluginsExtensions/Skeleton.h>
 #include <cpExtensions/DataStructures/Skeleton.h>
 #include <cpExtensions/Utility.h>
 
index 77c7f81d9ff28cca4c8fa2cd411ed27f5e638d70..600dec9a35a093fbaf7ee681f053409e9675f942 100644 (file)
@@ -1,6 +1,6 @@
 #include <ImageSliceFilters/CPRImageFilter.h>
 #include <cpPlugins/DataObjects/Image.h>
-#include <Extensions/Simple3DCurve.h>
+#include <cpPluginsExtensions/Simple3DCurve.h>
 
 #include <itkImage.h>
 #include <cpExtensions/DataStructures/Simple3DCurve.h>