]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/CMakeLists.txt
MAC compilation issues solved... Now some tests please
[cpPlugins.git] / lib / cpPlugins / Interface / CMakeLists.txt
index 6d73928e24f27ea70b172cc1029df327c70674f9..3de13f139a21d757acc1f904c7168a498c8a2bac 100644 (file)
@@ -10,75 +10,30 @@ CONFIGURE_FILE(
 ## = Source code =
 ## ===============
 
-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
-  )
+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")
 
 IF(USE_QT4)
-  SET(
-    LIB_HEADERS_H
-    ${LIB_HEADERS_H}
-    ParametersQtDialog.h
-    )
-  SET(
-    LIB_SOURCES_CXX
-    ${LIB_SOURCES_CXX}
-    ParametersQtDialog.cxx
-    )
-
   SET(
     LIB_QT_UI
+    SimpleMPRWidget.ui
     ParametersListWidget.ui
     )
   SET(
     LIB_QT_Headers
     ParametersListWidget.h
+    ParametersQtDialog.h
+    SimpleMPRWidget.h
     )
   SET(
     LIB_QT_Sources
     ParametersListWidget.cxx
+    ParametersQtDialog.cxx
+    SimpleMPRWidget.cxx
     )
   SET(
     LIB_QT_Resources
@@ -125,10 +80,12 @@ GENERATE_EXPORT_HEADER(
   )
 TARGET_LINK_LIBRARIES(
   ${LIBRARY_NAME}
+  cpPlugins_tinyxml
   cpPlugins_Pluma
   ${QT_LIBRARIES}
   ${ITK_LIBRARIES}
   ${VTK_LIBRARIES}
+  cpExtensions
   )
 
 ## ========================