Updated cmake sources to TDesktop version 2.7.1+c08a148
This commit is contained in:
commit
5e05a1337d
8 changed files with 55 additions and 1 deletions
1
external/CMakeLists.txt
vendored
1
external/CMakeLists.txt
vendored
|
|
@ -26,6 +26,7 @@ endif()
|
||||||
add_checked_subdirectory(ffmpeg)
|
add_checked_subdirectory(ffmpeg)
|
||||||
if (LINUX)
|
if (LINUX)
|
||||||
add_checked_subdirectory(glib)
|
add_checked_subdirectory(glib)
|
||||||
|
add_checked_subdirectory(glibmm)
|
||||||
endif()
|
endif()
|
||||||
add_checked_subdirectory(gsl)
|
add_checked_subdirectory(gsl)
|
||||||
if (LINUX AND NOT DESKTOP_APP_DISABLE_DBUS_INTEGRATION)
|
if (LINUX AND NOT DESKTOP_APP_DISABLE_DBUS_INTEGRATION)
|
||||||
|
|
|
||||||
6
external/fcitx5_qt5/CMakeLists.txt
vendored
6
external/fcitx5_qt5/CMakeLists.txt
vendored
|
|
@ -24,6 +24,12 @@ else()
|
||||||
PRIVATE
|
PRIVATE
|
||||||
qfcitxplatforminputcontext.cpp
|
qfcitxplatforminputcontext.cpp
|
||||||
qfcitxplatforminputcontext.h
|
qfcitxplatforminputcontext.h
|
||||||
|
fcitxcandidatewindow.cpp
|
||||||
|
fcitxcandidatewindow.h
|
||||||
|
fcitxtheme.cpp
|
||||||
|
fcitxtheme.h
|
||||||
|
font.cpp
|
||||||
|
font.h
|
||||||
qtkey.cpp
|
qtkey.cpp
|
||||||
main.cpp
|
main.cpp
|
||||||
main.h
|
main.h
|
||||||
|
|
|
||||||
3
external/glib/CMakeLists.txt
vendored
3
external/glib/CMakeLists.txt
vendored
|
|
@ -11,10 +11,12 @@ find_package(PkgConfig REQUIRED)
|
||||||
pkg_check_modules(GLIB2 REQUIRED IMPORTED_TARGET glib-2.0)
|
pkg_check_modules(GLIB2 REQUIRED IMPORTED_TARGET glib-2.0)
|
||||||
pkg_check_modules(GOBJECT REQUIRED IMPORTED_TARGET gobject-2.0)
|
pkg_check_modules(GOBJECT REQUIRED IMPORTED_TARGET gobject-2.0)
|
||||||
pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
|
pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
|
||||||
|
pkg_check_modules(GIO_UNIX REQUIRED IMPORTED_TARGET gio-unix-2.0)
|
||||||
|
|
||||||
if (DESKTOP_APP_USE_PACKAGED)
|
if (DESKTOP_APP_USE_PACKAGED)
|
||||||
target_link_libraries(external_glib
|
target_link_libraries(external_glib
|
||||||
INTERFACE
|
INTERFACE
|
||||||
|
PkgConfig::GIO_UNIX
|
||||||
PkgConfig::GIO
|
PkgConfig::GIO
|
||||||
PkgConfig::GOBJECT
|
PkgConfig::GOBJECT
|
||||||
PkgConfig::GLIB2
|
PkgConfig::GLIB2
|
||||||
|
|
@ -22,6 +24,7 @@ if (DESKTOP_APP_USE_PACKAGED)
|
||||||
else()
|
else()
|
||||||
target_include_directories(external_glib
|
target_include_directories(external_glib
|
||||||
INTERFACE
|
INTERFACE
|
||||||
|
${GIO_UNIX_INCLUDE_DIRS}
|
||||||
${GIO_INCLUDE_DIRS}
|
${GIO_INCLUDE_DIRS}
|
||||||
${GOBJECT_INCLUDE_DIRS}
|
${GOBJECT_INCLUDE_DIRS}
|
||||||
${GLIB2_INCLUDE_DIRS}
|
${GLIB2_INCLUDE_DIRS}
|
||||||
|
|
|
||||||
40
external/glibmm/CMakeLists.txt
vendored
Normal file
40
external/glibmm/CMakeLists.txt
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
# This file is part of Desktop App Toolkit,
|
||||||
|
# a set of libraries for developing nice desktop applications.
|
||||||
|
#
|
||||||
|
# For license and copyright information please follow this link:
|
||||||
|
# https://github.com/desktop-app/legal/blob/master/LEGAL
|
||||||
|
|
||||||
|
add_library(external_glibmm INTERFACE IMPORTED GLOBAL)
|
||||||
|
add_library(desktop-app::external_glibmm ALIAS external_glibmm)
|
||||||
|
|
||||||
|
find_package(PkgConfig REQUIRED)
|
||||||
|
pkg_check_modules(GLIBMM REQUIRED IMPORTED_TARGET glibmm-2.4)
|
||||||
|
pkg_check_modules(GIOMM REQUIRED IMPORTED_TARGET giomm-2.4)
|
||||||
|
|
||||||
|
if (DESKTOP_APP_USE_PACKAGED)
|
||||||
|
target_link_libraries(external_glibmm
|
||||||
|
INTERFACE
|
||||||
|
PkgConfig::GIOMM
|
||||||
|
PkgConfig::GLIBMM
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
target_include_directories(external_glibmm
|
||||||
|
INTERFACE
|
||||||
|
${GIOMM_INCLUDE_DIRS}
|
||||||
|
${GLIBMM_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_static_libraries(external_glibmm
|
||||||
|
INTERFACE
|
||||||
|
giomm-2.4
|
||||||
|
glibmm-2.4
|
||||||
|
sigc-2.0
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(external_glibmm
|
||||||
|
INTERFACE
|
||||||
|
gio-2.0
|
||||||
|
gobject-2.0
|
||||||
|
glib-2.0
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
@ -9,7 +9,8 @@ add_library(desktop-app::common_options ALIAS common_options)
|
||||||
|
|
||||||
target_compile_definitions(common_options
|
target_compile_definitions(common_options
|
||||||
INTERFACE
|
INTERFACE
|
||||||
$<IF:$<CONFIG:Debug>,_DEBUG,NDEBUG>
|
$<$<CONFIG:Debug>:_DEBUG>
|
||||||
|
QT_NO_KEYWORDS
|
||||||
QT_NO_CAST_FROM_BYTEARRAY
|
QT_NO_CAST_FROM_BYTEARRAY
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,7 @@ INTERFACE
|
||||||
QuartzCore
|
QuartzCore
|
||||||
AppKit
|
AppKit
|
||||||
CoreWLAN
|
CoreWLAN
|
||||||
|
WebKit
|
||||||
IOKit
|
IOKit
|
||||||
GSS
|
GSS
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||||
target_link_options(common_options
|
target_link_options(common_options
|
||||||
INTERFACE
|
INTERFACE
|
||||||
$<IF:$<CONFIG:Debug>,/NODEFAULTLIB:LIBCMT,/DEBUG;/OPT:REF>
|
$<IF:$<CONFIG:Debug>,/NODEFAULTLIB:LIBCMT,/DEBUG;/OPT:REF>
|
||||||
|
$<$<BOOL:${DESKTOP_APP_NO_PDB}>:/DEBUG:NONE>
|
||||||
)
|
)
|
||||||
|
|
||||||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ option(DESKTOP_APP_DISABLE_CRASH_REPORTS "Disable crash report generation." ${no
|
||||||
option(DESKTOP_APP_DISABLE_AUTOUPDATE "Disable autoupdate." ${disable_autoupdate})
|
option(DESKTOP_APP_DISABLE_AUTOUPDATE "Disable autoupdate." ${disable_autoupdate})
|
||||||
option(DESKTOP_APP_USE_HUNSPELL_ONLY "Disable system spellchecker and use bundled Hunspell only. (For debugging purposes)" OFF)
|
option(DESKTOP_APP_USE_HUNSPELL_ONLY "Disable system spellchecker and use bundled Hunspell only. (For debugging purposes)" OFF)
|
||||||
option(DESKTOP_APP_USE_ENCHANT "Use Enchant instead of bundled Hunspell. (Linux only)" OFF)
|
option(DESKTOP_APP_USE_ENCHANT "Use Enchant instead of bundled Hunspell. (Linux only)" OFF)
|
||||||
|
option(DESKTOP_APP_NO_PDB "Disable PDB file generation. (Windows only)" OFF)
|
||||||
set(DESKTOP_APP_QTWAYLANDCLIENT_PRIVATE_HEADERS "" CACHE STRING "QtWaylandClient headers location.")
|
set(DESKTOP_APP_QTWAYLANDCLIENT_PRIVATE_HEADERS "" CACHE STRING "QtWaylandClient headers location.")
|
||||||
|
|
||||||
set(dont_bundle_fonts 0)
|
set(dont_bundle_fonts 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue