2015-12-10 05:06:13 +02:00
|
|
|
add_definitions(
|
|
|
|
${SHAREDGRADIENDEDITOR_DEFINITIONS}
|
|
|
|
${SHAREDPROPERTYBROWSER_DEFINITIONS}
|
2016-11-11 21:03:42 +00:00
|
|
|
-DQT_SCRIPT_LIB
|
2015-12-10 05:06:13 +02:00
|
|
|
)
|
|
|
|
set(EXTRA_DESIGNER_LIBS KtCore KtGui KtXml KtUiTools)
|
|
|
|
|
|
|
|
include(extension/extension.cmake)
|
|
|
|
include(sdk/sdk.cmake)
|
|
|
|
include(shared/shared.cmake)
|
|
|
|
|
2016-03-05 22:04:34 +00:00
|
|
|
add_subdirectory(components)
|
|
|
|
|
2015-12-10 05:06:13 +02:00
|
|
|
set(DESIGNER_PUBLIC_HEADERS
|
|
|
|
${DESIGNER_PUBLIC_HEADERS}
|
|
|
|
QAbstractExtensionFactory
|
|
|
|
QAbstractExtensionManager
|
|
|
|
QAbstractFormBuilder
|
|
|
|
QDesignerActionEditorInterface
|
|
|
|
QDesignerBrushManagerInterface
|
|
|
|
QDesignerComponents
|
|
|
|
QDesignerContainerExtension
|
|
|
|
QDesignerCustomWidgetCollectionInterface
|
|
|
|
QDesignerCustomWidgetInterface
|
|
|
|
QDesignerDnDItemInterface
|
|
|
|
QDesignerDynamicPropertySheetExtension
|
|
|
|
QDesignerExportWidget
|
|
|
|
QDesignerExtraInfoExtension
|
|
|
|
QDesignerFormEditorInterface
|
|
|
|
QDesignerFormEditorPluginInterface
|
|
|
|
QDesignerFormWindowCursorInterface
|
|
|
|
QDesignerFormWindowInterface
|
|
|
|
QDesignerFormWindowManagerInterface
|
|
|
|
QDesignerFormWindowToolInterface
|
|
|
|
QDesignerIconCacheInterface
|
|
|
|
QDesignerIntegrationInterface
|
|
|
|
QDesignerLanguageExtension
|
|
|
|
QDesignerLayoutDecorationExtension
|
|
|
|
QDesignerMemberSheetExtension
|
|
|
|
QDesignerMetaDataBaseInterface
|
|
|
|
QDesignerMetaDataBaseItemInterface
|
|
|
|
QDesignerObjectInspectorInterface
|
|
|
|
QDesignerPromotionInterface
|
|
|
|
QDesignerPropertyEditorInterface
|
|
|
|
QDesignerPropertySheetExtension
|
|
|
|
QDesignerResourceBrowserInterface
|
|
|
|
QDesignerTaskMenuExtension
|
|
|
|
QDesignerWidgetBoxInterface
|
|
|
|
QDesignerWidgetDataBaseInterface
|
|
|
|
QDesignerWidgetDataBaseItemInterface
|
|
|
|
QDesignerWidgetFactoryInterface
|
|
|
|
QExtensionFactory
|
|
|
|
QExtensionManager
|
|
|
|
QFormBuilder
|
|
|
|
)
|
|
|
|
|
|
|
|
set(DESIGNER_HEADERS
|
|
|
|
${DESIGNER_HEADERS}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/container.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/qdesignerexportwidget.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/qdesigner_components_global.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/qdesigner_components.h
|
|
|
|
${SHAREDGRADIENDEDITOR_HEADERS}
|
|
|
|
${SHAREDPROPERTYBROWSER_HEADERS}
|
|
|
|
${SHAREDFINDWIDGET_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(DESIGNER_SOURCES
|
|
|
|
${DESIGNER_SOURCES}
|
|
|
|
${CMAKE_SOURCE_DIR}/src/tools/rcc/rcc.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_BINARY_DIR}/include
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtCore
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtCore
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtGui
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtGui
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtXml
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtXml
|
2016-11-11 21:03:42 +00:00
|
|
|
${CMAKE_BINARY_DIR}/include/QtScript
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtScript
|
2015-12-10 05:06:13 +02:00
|
|
|
${CMAKE_BINARY_DIR}/include/QtUiTools
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtUiTools
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtDesigner
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtDesigner
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/components
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/extension
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/sdk
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/shared
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/components
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/extension
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/sdk
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/shared
|
|
|
|
${SHAREDGRADIENDEDITOR_INCLUDES}
|
|
|
|
${SHAREDPROPERTYBROWSER_INCLUDES}
|
|
|
|
${SHAREDFINDWIDGET_INCLUDES}
|
|
|
|
# for widgets.table
|
|
|
|
${CMAKE_SOURCE_DIR}/src/shared
|
|
|
|
# for rcc.h
|
|
|
|
${CMAKE_SOURCE_DIR}/src/tools/rcc
|
|
|
|
)
|
|
|
|
|
|
|
|
if(${KATIE_TYPE} STREQUAL SHARED)
|
|
|
|
add_definitions(
|
|
|
|
-DQDESIGNER_SDK_LIBRARY
|
|
|
|
-DQDESIGNER_EXTENSION_LIBRARY
|
|
|
|
-DQDESIGNER_SHARED_LIBRARY
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
add_definitions(-DQT_DESIGNER_STATIC)
|
|
|
|
endif()
|
|
|
|
|
2016-08-27 03:56:06 +00:00
|
|
|
set(DESIGNER_HEADERS
|
|
|
|
${DESIGNER_HEADERS}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/qdesignercommon_p.h
|
|
|
|
)
|
|
|
|
|
2015-12-10 05:06:13 +02:00
|
|
|
katie_generate_misc("${DESIGNER_HEADERS}" QtDesigner)
|
|
|
|
katie_generate_public("${DESIGNER_PUBLIC_HEADERS}" QtDesigner)
|
2016-08-09 01:39:18 +00:00
|
|
|
katie_generate_package(KtDesigner "KtCore KtGui KtXml KtUiTools")
|
2016-08-25 04:38:45 +00:00
|
|
|
katie_setup_target(KtDesigner ${DESIGNER_SOURCES} ${DESIGNER_HEADERS})
|
2015-12-10 05:06:13 +02:00
|
|
|
|
2016-08-25 04:38:45 +00:00
|
|
|
add_library(KtDesigner ${KATIE_TYPE} ${KtDesigner_SOURCES}
|
2015-12-10 05:06:13 +02:00
|
|
|
$<TARGET_OBJECTS:sharedqtgradienteditor>
|
|
|
|
$<TARGET_OBJECTS:sharedqtpropertybrowser>
|
|
|
|
$<TARGET_OBJECTS:sharedfindwidget>
|
2016-08-25 04:38:45 +00:00
|
|
|
)
|
2015-12-10 05:06:13 +02:00
|
|
|
target_link_libraries(KtDesigner ${EXTRA_DESIGNER_LIBS})
|
|
|
|
set_target_properties(KtDesigner PROPERTIES
|
|
|
|
VERSION ${KATIE_MAJOR}.${KATIE_MINOR}
|
|
|
|
SOVERSION ${KATIE_VERSION}
|
|
|
|
EXPORT_NAME Designer
|
|
|
|
)
|
|
|
|
|
2019-05-04 17:06:44 +00:00
|
|
|
katie_setup_object(KtDesigner sharedqtgradienteditor sharedqtpropertybrowser sharedfindwidget)
|
2015-12-10 05:06:13 +02:00
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS KtDesigner
|
|
|
|
EXPORT KatieLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}
|
2016-10-07 23:43:48 +00:00
|
|
|
DESTINATION ${KATIE_LIBRARIES_RELATIVE}
|
2015-12-10 05:06:13 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
DIRECTORY ${CMAKE_BINARY_DIR}/include/QtDesigner
|
2016-10-07 23:43:48 +00:00
|
|
|
DESTINATION ${KATIE_HEADERS_RELATIVE}
|
2015-12-10 05:06:13 +02:00
|
|
|
COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
2016-10-07 23:43:48 +00:00
|
|
|
katie_optimize_headers(${KATIE_HEADERS_FULL}/QtDesigner)
|