summaryrefslogtreecommitdiffstats
path: root/plugins/CMakeLists.txt
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-10-06 18:55:42 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-10-07 12:18:31 -0300
commit24cbdd8dfa3cd01184d0dae297c15547d4962293 (patch)
treea1afafc9b9dc216e6e62a4529a4cf0c1fa5cc71d /plugins/CMakeLists.txt
parent83533ddc5d89feb046863b4dacc86be3967e4a6b (diff)
downloadpyside-24cbdd8dfa3cd01184d0dae297c15547d4962293.tar.gz
pyside-24cbdd8dfa3cd01184d0dae297c15547d4962293.tar.xz
pyside-24cbdd8dfa3cd01184d0dae297c15547d4962293.zip
Created uiloader plugin used to register new types before QUiLoader.
This is used to register a new python type which can be used in ui description files. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'plugins/CMakeLists.txt')
-rw-r--r--plugins/CMakeLists.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
new file mode 100644
index 0000000..a9a1e81
--- /dev/null
+++ b/plugins/CMakeLists.txt
@@ -0,0 +1,29 @@
+project(plugins)
+
+set(ui_plugin_src
+ customwidgets.cpp
+ customwidget.cpp
+)
+
+set (ui_plugin_moc
+ customwidget.h
+ customwidgets.h
+)
+
+QT4_WRAP_CPP(MOC_FILES ${ui_plugin_moc})
+include_directories(${QT_QTDESIGNER_INCLUDE_DIR}
+ ${SHIBOKEN_INCLUDE_DIR}
+ ${PYTHON_INCLUDE_DIR})
+
+add_library(uiplugin STATIC ${ui_plugin_src} ${MOC_FILES})
+add_definitions(-fPIC)
+add_definitions(-DQT_STATICPLUGIN)
+target_link_libraries(uiplugin
+ ${QT_QTDESIGNER_LIBRARY}
+ ${SHIBOKEN_LIBRARY}
+ ${PYTHON_LIBRARY})
+if (CMAKE_BUILD_TYPE STREQUAL "Debug")
+ set(LIBRARY_OUTPUT_SUFFIX ${CMAKE_DEBUG_POSTFIX})
+else()
+ set(LIBRARY_OUTPUT_SUFFIX ${CMAKE_RELEASE_POSTFIX})
+endif()