]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/CMakeLists.txt
XML IO added. Workspace singleton added to simplify pipeline definition and execution.
[cpPlugins.git] / lib / cpPlugins / Interface / CMakeLists.txt
index f8a6ff7e336fff5b3846f02ca716991f1f1a4ed1..ae572ccf77f142e5accb72bf24e20f307c4182b2 100644 (file)
@@ -1,5 +1,11 @@
 SET(LIBRARY_NAME cpPlugins_Interface)
 
+CONFIGURE_FILE(
+  Config.h.in
+  ${PROJECT_BINARY_DIR}/lib/cpPlugins/Interface/Config.h
+  @ONLY
+  )
+
 ## ===============
 ## = Source code =
 ## ===============
@@ -11,6 +17,49 @@ FILE(GLOB LIB_SOURCES_C   "*.c")
 FILE(GLOB LIB_SOURCES_CPP "*.cpp")
 FILE(GLOB LIB_SOURCES_CXX "*.cxx")
 
+IF(USE_QT4)
+  SET(
+    LIB_QT_UI
+    BaseMPRWidget.ui
+    ParametersListWidget.ui
+    )
+  SET(
+    LIB_QT_Headers
+    ParametersListWidget.h
+    ParametersQtDialog.h
+    BaseMPRWidget.h
+    )
+  SET(
+    LIB_QT_Sources
+    ParametersListWidget.cxx
+    ParametersQtDialog.cxx
+    BaseMPRWidget.cxx
+    )
+  SET(
+    LIB_QT_Resources
+    )
+
+  QT4_WRAP_UI(LIB_QT_Wrapped_Headers ${LIB_QT_UI})
+  QT4_WRAP_CPP(LIB_QT_Wrapped_MOC_Sources ${LIB_QT_Headers})
+  QT4_ADD_RESOURCES(LIB_QT_Wrapped_Resources_Sources ${LIB_QT_Resources})
+
+  SET(
+    LIB_HEADERS_H
+    ${LIB_HEADERS_H}
+    ${LIB_QT_Wrapped_Headers}
+    )
+
+  SET(
+    LIB_SOURCES_CXX
+    ${LIB_SOURCES_CXX}
+    ${LIB_QT_Sources}
+    ${LIB_QT_Wrapped_Headers}
+    ${LIB_QT_Wrapped_MOC_Sources}
+    ${LIB_QT_Wrapped_Resources_Sources}
+    )
+
+ENDIF(USE_QT4)
+
 ## =====================
 ## = Compilation rules =
 ## =====================
@@ -31,9 +80,12 @@ GENERATE_EXPORT_HEADER(
   )
 TARGET_LINK_LIBRARIES(
   ${LIBRARY_NAME}
+  cpPlugins_tinyxml
   cpPlugins_Pluma
+  ${QT_LIBRARIES}
   ${ITK_LIBRARIES}
   ${VTK_LIBRARIES}
+  cpExtensions
   )
 
 ## ========================