diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-10-06 18:55:42 -0300 |
---|---|---|
committer | renatofilho <renato.filho@openbossa.org> | 2010-10-07 12:18:31 -0300 |
commit | 24cbdd8dfa3cd01184d0dae297c15547d4962293 (patch) | |
tree | a1afafc9b9dc216e6e62a4529a4cf0c1fa5cc71d /plugins/CMakeLists.txt | |
parent | 83533ddc5d89feb046863b4dacc86be3967e4a6b (diff) |
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.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt new file mode 100644 index 000000000..a9a1e810f --- /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() |