]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/CMakeLists.txt
...
[cpPlugins.git] / lib / cpPlugins / Interface / CMakeLists.txt
index b498063912a9fe88bf9615af949a6ec208654dc0..36dc3f8ae3cabfcf1458b65d030ae0eadc00217f 100644 (file)
@@ -4,12 +4,64 @@ SET(LIBRARY_NAME cpPlugins_Interface)
 ## = 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(
+  LIB_HEADERS_H
+  BaseProcessObjects.h
+  DataObject.h
+  Image.h
+  Interface.h
+  Macros.h
+  Mesh.h
+  Object.h
+  Parameters.h
+  ProcessObject.h
+  )
+
+SET(
+  LIB_HEADERS_HPP
+  )
+
+SET(
+  LIB_HEADERS_HXX
+  Image.hxx
+  Mesh.hxx
+  Parameters.hxx
+  ProcessObject.hxx
+  )
+
+SET(
+  LIB_SOURCES_C
+  )
+SET(
+  LIB_SOURCES_CPP
+  )
+
+SET(
+  LIB_SOURCES_CXX
+  BaseProcessObjects.cxx
+  DataObject.cxx
+  Image.cxx
+  Instances_itkImage.cxx
+  Instances_itkMesh.cxx
+  Interface.cxx
+  Mesh.cxx
+  Object.cxx
+  Parameters.cxx
+  ProcessObject.cxx
+  )
+
+IF(USE_QT4)
+  SET(
+    LIB_HEADERS_H
+    ${LIB_HEADERS_H}
+    ParametersQtDialog.h
+    )
+  SET(
+    LIB_SOURCES_CXX
+    ${LIB_SOURCES_CXX}
+    ParametersQtDialog.cxx
+    )
+ENDIF(USE_QT4)
 
 ## =====================
 ## = Compilation rules =
@@ -32,7 +84,9 @@ GENERATE_EXPORT_HEADER(
 TARGET_LINK_LIBRARIES(
   ${LIBRARY_NAME}
   cpPlugins_Pluma
-  cpPlugins_Extensions
+  ${QT_LIBRARIES}
+  ${ITK_LIBRARIES}
+  ${VTK_LIBRARIES}
   )
 
 ## ========================
@@ -45,28 +99,21 @@ INSTALL(
   LIBRARY DESTINATION lib
   ARCHIVE DESTINATION lib/static
   )
-SET(
-  local_install_dirs
-  .
+INSTALL(
+  DIRECTORY .
+  DESTINATION include/cpPlugins/Interface
+  FILES_MATCHING PATTERN "*.h"
+  )
+INSTALL(
+  DIRECTORY .
+  DESTINATION include/cpPlugins/Interface
+  FILES_MATCHING PATTERN "*.hxx"
+  )
+INSTALL(
+  DIRECTORY .
+  DESTINATION include/cpPlugins/Interface
+  FILES_MATCHING PATTERN "*.hpp"
   )
-FOREACH(dir ${local_install_dirs})
-  INSTALL(
-    DIRECTORY ${dir}
-    DESTINATION include/cpPlugins/Interface
-    FILES_MATCHING PATTERN "*.h"
-    )
-  INSTALL(
-    DIRECTORY ${dir}
-    DESTINATION include/cpPlugins/Interface
-    FILES_MATCHING PATTERN "*.hxx"
-    )
-  INSTALL(
-    DIRECTORY ${dir}
-    DESTINATION include/cpPlugins/Interface
-    FILES_MATCHING PATTERN "*.hpp"
-    )
-ENDFOREACH(dir)
-
 INSTALL(
   FILES
   ${PROJECT_BINARY_DIR}/lib/cpPlugins/Interface/${LIBRARY_NAME}_Export.h