]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpaPlugins/CMakeLists.txt
Plugins updated
[FrontAlgorithms.git] / lib / fpaPlugins / CMakeLists.txt
index ec3c96dcc1f41f424848308867ea8ad6515819c8..4b9bf2ee1a01d877745f6e74dc877795691b6c93 100644 (file)
@@ -4,12 +4,31 @@ 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")
+SET(
+  data_LIB_HEADERS
+  GrowFunction.h
+  GrowFunction.hxx
+  )
+SET(
+  filters_LIB_HEADERS
+  AllPixelsImageGrowFunctionSource.h
+  ThresholdImageGrowFunctionSource.h
+  ImageRegionGrow.h
+  )
+SET(
+  data_LIB_SOURCES
+  GrowFunction.cxx
+  )
+SET(
+  filters_LIB_SOURCES
+  AllPixelsImageGrowFunctionSource.cxx
+  ThresholdImageGrowFunctionSource.cxx
+  ImageRegionGrow.cxx
+  )
+INCLUDE_DIRECTORIES(
+  ${PROJECT_SOURCE_DIR}/lib/fpaPlugins
+  ${PROJECT_BINARY_DIR}/lib/fpaPlugins
+  )
 
 ## =====================
 ## = Compilation rules =
@@ -17,17 +36,16 @@ FILE(GLOB LIB_SOURCES_CXX "*.cxx")
 
 ADD_CUSTOM_COMMAND(
   OUTPUT ${LIBRARY_NAME}_Host.cxx
-  DEPENDS ${cpPlugins_createHost_APP} ${LIB_HEADERS_H}
-  COMMAND ${cpPlugins_createHost_APP} ${LIBRARY_NAME}_Host.cxx fpaPlugins ${LIB_HEADERS_H}
+  DEPENDS ${cpPlugins_createHost_APP} ${filters_LIB_HEADERS}
+  COMMAND ${cpPlugins_createHost_APP} ${LIBRARY_NAME}_Host.cxx fpaPlugins ${filters_LIB_HEADERS}
   )
 
 ADD_LIBRARY(
   ${LIBRARY_NAME}
   SHARED
   ${LIBRARY_NAME}_Host.cxx
-  ${LIB_SOURCES_C}
-  ${LIB_SOURCES_CPP}
-  ${LIB_SOURCES_CXX}
+  ${data_LIB_SOURCES}
+  ${filters_LIB_SOURCES}
   )
 GENERATE_EXPORT_HEADER(
   ${LIBRARY_NAME}