Spec-Zone.ru › CMake 3.11

FindKDE3

Найдите директории включаемых файлов и библиотек KDE3, препроцессоры KDE и определите некоторые макросы

Этот модуль определяет следующие переменные:

KDE3_DEFINITIONS
определения компилятора, необходимые для компиляции программного обеспечения KDE
KDE3_INCLUDE_DIR
директория включения KDE
KDE3_INCLUDE_DIRS
директория включения KDE и Qt, для использования с include_directories()
KDE3_LIB_DIR
директория установки библиотек KDE, для использования с link_directories()
QT_AND_KDECORE_LIBS
содержит библиотеки Qt и kdecore
KDE3_DCOPIDL_EXECUTABLE
исполняемый файл dcopidl
KDE3_DCOPIDL2CPP_EXECUTABLE
исполняемый файл dcopidl2cpp
KDE3_KCFGC_EXECUTABLE
исполняемый файл kconfig_compiler
KDE3_FOUND
установлено в TRUE, если все вышеперечисленное найдено

Предоставляются следующие настраиваемые пользователем параметры:

KDE3_BUILD_TESTS
включить для построения тестов KDE

Он также добавляет следующие макросы (из KDE3Macros.cmake) SRCS_VAR всегда является переменной, содержащей список исходных файлов для вашего приложения или библиотеки.

KDE3_AUTOMOC(file1 … fileN)

Call this if you want to have automatic moc file handling.
This means if you include "foo.moc" in the source file foo.cpp
a moc file for the header foo.h will be created automatically.
You can set the property SKIP_AUTOMAKE using set_source_files_properties()
to exclude some files in the list from being processed.

KDE3_ADD_MOC_FILES(SRCS_VAR file1 … fileN )

If you don't use the KDE3_AUTOMOC() macro, for the files
listed here moc files will be created (named "foo.moc.cpp")

KDE3_ADD_DCOP_SKELS(SRCS_VAR header1.h … headerN.h )

Use this to generate DCOP skeletions from the listed headers.

KDE3_ADD_DCOP_STUBS(SRCS_VAR header1.h … headerN.h )

Use this to generate DCOP stubs from the listed headers.

KDE3_ADD_UI_FILES(SRCS_VAR file1.ui … fileN.ui )

Use this to add the Qt designer ui files to your application/library.

KDE3_ADD_KCFG_FILES(SRCS_VAR file1.kcfgc … fileN.kcfgc )

Use this to add KDE kconfig compiler files to your application/library.

KDE3_INSTALL_LIBTOOL_FILE(target)

This will create and install a simple libtool file for the given target.

KDE3_ADD_EXECUTABLE(name file1 … fileN )

Currently identical to add_executable(), may provide some advanced
features in the future.

KDE3_ADD_KPART(name [WITH_PREFIX] file1 … fileN )

Create a KDE plugin (KPart, kioslave, etc.) from the given source files.
If WITH_PREFIX is given, the resulting plugin will have the prefix "lib",
otherwise it won't.
It creates and installs an appropriate libtool la-file.

KDE3_ADD_KDEINIT_EXECUTABLE(name file1 … fileN )

Create a KDE application in the form of a module loadable via kdeinit.
A library named kdeinit_<name> will be created and a small executable
which links to it.

Опция KDE3_ENABLE_FINAL для включения компиляции «всё в одном» больше не поддерживается.

Автор: Александр Нейндорф <neundorf@kde.org>

© 2000–2019 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.11/module/FindKDE3.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API