]> Creatis software - cpPlugins.git/commitdiff
...
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Tue, 5 Apr 2016 22:40:31 +0000 (17:40 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Tue, 5 Apr 2016 22:40:31 +0000 (17:40 -0500)
cmake/cpPluginsConfig.cmake.in
lib/cpPlugins/CMakeLists.txt
lib/cpPlugins_Instances/Base_extra.cxx
lib/cpPlugins_Instances/CMakeLists.txt

index 01ac83cd3c0b948bfff4e8946076232ee50ebfd0..b46789024dea07b3c0796e9f8fdf5dbcbff439a1 100644 (file)
@@ -92,6 +92,7 @@ ENDIF(MSVC)
 
 SET(cpExtensions_LIBRARY cpExtensions)
 SET(cpPlugins_tinyxml2_LIBRARY cpPlugins_tinyxml2)
+SET(cpPlugins_ALL_INSTANCES_LIBRARIES "@cpPlugins_ALL_INSTANCES@")
 SET(cpPlugins_LIBRARY cpPlugins)
 SET(cpPipelineEditor_LIBRARY cpPipelineEditor)
 
index 5516a22a1ce442f51a699739318cd84a8bf59cdd..971707f2265053936e9f23b94f606454ad00c38d 100644 (file)
@@ -83,20 +83,8 @@ SET(
 
 SET(
   target_LIBRARIES
-  cpPlugins_Base
-  cpPlugins_DistanceMapFilters
-  cpPlugins_GaussianImageFilters
-  cpPlugins_ImageFiltersBase
-  cpPlugins_ImageIO
-  cpPlugins_ImageIterators
-  cpPlugins_ImageITK2VTK
-  cpPlugins_Image
-  cpPlugins_InPlaceImageFiltersBase
-  cpPlugins_Mesh
-  cpPlugins_ResamplingFilters
-  cpPlugins_ThresholdFilters
+  ${cpPlugins_ALL_INSTANCES}
   cpPlugins_tinyxml2
-  cpPlugins_Transforms
   )
 IF(NOT WIN32)
   SET(
index e0d8a83f17f16b7773fbbf40ecaffc28924208f7..e0b72342595304457c755427327bb3ba9e74d63b 100644 (file)
@@ -46,15 +46,18 @@ cpPlugins_Base_extra_Array_AllScalars_AllDims( itk::FixedArray );
 cpPlugins_Base_extra_Array_AllScalars_AllDims( itk::Point );
 cpPlugins_Base_extra_Array_AllScalars_AllDims( itk::Vector );
 
-#define cpPlugins_Base_extra_VariableLengthVector_SetSize( T, P ) \
-  template cpPlugins_Base_EXPORT void itk::VariableLengthVector< T >:: \
-  SetSize< itk::VariableLengthVector< T >::P, \
-           itk::VariableLengthVector< T >::KeepOldValues >( \
-    unsigned int, itk::VariableLengthVector< T >::P, \
-    itk::VariableLengthVector< float >::KeepOldValues \
-  )
-
-cpPlugins_Base_extra_VariableLengthVector_SetSize( float, AlwaysReallocate );
-cpPlugins_Base_extra_VariableLengthVector_SetSize( float, ShrinkToFit );
+// -------------------------------------------------------------------------
+#define cpPlugins_Base_extra_VariableLengthVector_SetSize( T, P, Q )    \
+  template cpPlugins_Base_EXPORT void itk::VariableLengthVector< T >::  \
+  SetSize                                                               \
+  < itk::VariableLengthVector< T >::P, itk::VariableLengthVector< T >::Q > \
+  (                                                                     \
+    unsigned int,                                                       \
+    itk::VariableLengthVector< T >::P,                                  \
+    itk::VariableLengthVector< T >::Q                                   \
+    )
+
+cpPlugins_Base_extra_VariableLengthVector_SetSize( float, AlwaysReallocate, KeepOldValues );
+cpPlugins_Base_extra_VariableLengthVector_SetSize( float, ShrinkToFit, KeepOldValues );
 
 // eof - $RCSfile$
index bd6ff3354ce44334abafc00e0cf762d16f0b3cf9..2bbc988b5b8ed0930854eb015e570b18f2004af7 100644 (file)
@@ -4,6 +4,7 @@ FILE(
   "${CMAKE_CURRENT_SOURCE_DIR}/*.i"
   )
 
+SET(aux_ALL_INSTANCES)
 FOREACH(i ${libs_DEFS})
   GET_FILENAME_COMPONENT(l_DEF ${i} NAME_WE)
   SET(i_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${l_DEF}.i")
@@ -11,6 +12,7 @@ FOREACH(i ${libs_DEFS})
   SET(s_FILE "${CMAKE_CURRENT_BINARY_DIR}/${l_DEF}.cxx")
   SET(o_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${l_DEF}_extra.cxx")
   SET(l_NAME "cpPlugins_${l_DEF}")
+  SET(aux_ALL_INSTANCES ${aux_ALL_INSTANCES} ${l_NAME})
   ADD_CUSTOM_COMMAND(
     OUTPUT ${h_FILE} ${s_FILE}
     DEPENDS cpPlugins_CreateInstances ${i_FILE}
@@ -35,6 +37,12 @@ FOREACH(i ${libs_DEFS})
     )
 ENDFOREACH(i)
 
+SET(
+  cpPlugins_ALL_INSTANCES
+  ${aux_ALL_INSTANCES}
+  CACHE STRING "All instances libraries."
+  )
+
 ## Target links
 TARGET_LINK_LIBRARIES(cpPlugins_Base ${ITK_LIBRARIES})
 TARGET_LINK_LIBRARIES(cpPlugins_Transforms ${ITK_LIBRARIES} cpPlugins_Base)