2015-12-10 05:06:13 +02:00
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
|
|
|
|
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/QtDBus
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtDBus
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtDeclarative
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtDeclarative
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtDesigner
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtDesigner
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtNetwork
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtNetwork
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtScript
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtScript
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtSql
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtSql
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtSvg
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtSvg
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/script
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/codecs
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/imageformats
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/iconengines
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/accessible
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/qmltooling
|
|
|
|
${CMAKE_SOURCE_DIR}/src/3rdparty/harfbuzz/src
|
|
|
|
)
|
|
|
|
|
2015-12-24 04:47:35 +02:00
|
|
|
if(NOT ${KATIE_TYPE} STREQUAL SHARED)
|
2015-12-10 05:06:13 +02:00
|
|
|
add_definitions(-DQT_STATICPLUGIN)
|
|
|
|
endif()
|
|
|
|
|
2017-08-08 17:56:34 +00:00
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins/accessible")
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins/accessible")
|
2015-12-10 05:06:13 +02:00
|
|
|
if(WITH_ACCESSIBILITY)
|
2017-08-08 17:56:34 +00:00
|
|
|
add_subdirectory(accessible/widgets)
|
2015-12-10 05:06:13 +02:00
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2017-08-08 17:56:34 +00:00
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins/bearer")
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins/bearer")
|
|
|
|
|
2016-10-11 23:16:20 +00:00
|
|
|
set(SHAREDBEARER_SOURCES
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/bearer/qnetworksession_impl.cpp
|
|
|
|
)
|
|
|
|
set(SHAREDBEARER_HEADERS
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/bearer/qnetworksession_impl.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/bearer/qbearerengine_impl.h
|
|
|
|
)
|
|
|
|
katie_setup_target(sharedbearer ${SHAREDBEARER_SOURCES} ${SHAREDBEARER_HEADERS})
|
|
|
|
add_library(sharedbearer OBJECT ${sharedbearer_SOURCES})
|
|
|
|
target_include_directories(sharedbearer PRIVATE
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/bearer
|
|
|
|
)
|
|
|
|
|
2016-09-11 03:34:55 +00:00
|
|
|
if(KATIE_PLATFORM MATCHES "(linux|freebsd|openbsd)")
|
2017-08-08 17:56:34 +00:00
|
|
|
add_subdirectory(bearer/generic)
|
2015-12-10 05:06:13 +02:00
|
|
|
if(WITH_DBUS AND DBUS_FOUND)
|
2017-08-08 17:56:34 +00:00
|
|
|
add_subdirectory(bearer/connman)
|
|
|
|
add_subdirectory(bearer/networkmanager)
|
2015-12-10 05:06:13 +02:00
|
|
|
endif()
|
|
|
|
else()
|
2017-08-08 17:56:34 +00:00
|
|
|
add_subdirectory(bearer/generic)
|
2015-12-10 05:06:13 +02:00
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2017-08-08 17:56:34 +00:00
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins/iconengines")
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins/iconengines")
|
|
|
|
add_subdirectory(iconengines/svgiconengine)
|
2015-12-10 05:06:13 +02:00
|
|
|
|
|
|
|
|
2017-08-08 17:56:34 +00:00
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins/imageformats")
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins/imageformats")
|
|
|
|
add_subdirectory(imageformats/gif)
|
|
|
|
add_subdirectory(imageformats/ico)
|
2015-12-10 05:06:13 +02:00
|
|
|
if(WITH_JPEG AND JPEG_FOUND)
|
2017-08-08 17:56:34 +00:00
|
|
|
add_subdirectory(imageformats/jpeg)
|
2015-12-10 05:06:13 +02:00
|
|
|
endif()
|
|
|
|
if(WITH_MNG AND MNG_FOUND)
|
2017-08-08 17:56:34 +00:00
|
|
|
add_subdirectory(imageformats/mng)
|
2015-12-10 05:06:13 +02:00
|
|
|
endif()
|
2017-08-08 17:56:34 +00:00
|
|
|
add_subdirectory(imageformats/svg)
|
|
|
|
add_subdirectory(imageformats/tga)
|
2015-12-10 05:06:13 +02:00
|
|
|
if(WITH_TIFF AND TIFF_FOUND)
|
2017-08-08 17:56:34 +00:00
|
|
|
add_subdirectory(imageformats/tiff)
|
2015-12-10 05:06:13 +02:00
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2017-08-08 17:56:34 +00:00
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins/script")
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins/script")
|
2015-12-10 05:06:13 +02:00
|
|
|
if(WITH_DBUS AND DBUS_FOUND)
|
2017-08-08 17:56:34 +00:00
|
|
|
add_subdirectory(script/qtdbus)
|
2015-12-10 05:06:13 +02:00
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2017-08-08 17:56:34 +00:00
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins/sqldrivers")
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins/sqldrivers")
|
2016-08-09 04:33:37 +00:00
|
|
|
if(WITH_MYSQL AND MYSQL_FOUND)
|
2017-08-08 17:56:34 +00:00
|
|
|
add_subdirectory(sqldrivers/mysql)
|
2016-08-09 04:33:37 +00:00
|
|
|
endif()
|
|
|
|
if(WITH_ODBC AND ODBC_FOUND)
|
2017-08-08 17:56:34 +00:00
|
|
|
add_subdirectory(sqldrivers/odbc)
|
2016-08-09 04:33:37 +00:00
|
|
|
endif()
|
|
|
|
if(WITH_PSQL AND PostgreSQL_FOUND)
|
2017-08-08 17:56:34 +00:00
|
|
|
add_subdirectory(sqldrivers/psql)
|
2016-08-09 04:33:37 +00:00
|
|
|
endif()
|
2016-09-16 00:34:05 +00:00
|
|
|
if(WITH_SQLITE AND SQLITE_FOUND)
|
2017-08-08 17:56:34 +00:00
|
|
|
add_subdirectory(sqldrivers/sqlite)
|
2016-08-09 04:33:37 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2017-08-08 17:56:34 +00:00
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins/designer")
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins/designer")
|
|
|
|
add_subdirectory(designer/qdeclarativeview)
|