Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
1 | # This file handles all the logic for compiling KAuth's backends | 1 | # This file handles all the logic for compiling KAuth's backends | ||
---|---|---|---|---|---|
2 | include(ConfigureChecks.cmake) | 2 | include(ConfigureChecks.cmake) | ||
3 | 3 | | |||
4 | # Configure a small file to tell BackendsManager what to use | 4 | # Configure a small file to tell BackendsManager what to use | ||
5 | configure_file(BackendsConfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/BackendsConfig.h) | 5 | configure_file(BackendsConfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/BackendsConfig.h) | ||
6 | 6 | | |||
7 | ecm_create_qm_loader(KAuth_QM_LOADER kauth5_qt) | 7 | ecm_create_qm_loader(KAuth_QM_LOADER kauth5_qt) | ||
8 | 8 | | |||
9 | set(kauthdebug_SRCS) | 9 | set(kauthdebug_SRCS) | ||
10 | ecm_qt_declare_logging_category(kauthdebug_SRCS HEADER kauthdebug.h IDENTIFIER KAUTH CATEGORY_NAME kf5.kauth) | 10 | ecm_qt_declare_logging_category(kauthdebug_SRCS HEADER kauthdebug.h IDENTIFIER KAUTH CATEGORY_NAME kf5.kauth) | ||
11 | 11 | | |||
12 | if(TARGET Qt5::Widgets) | 12 | if(TARGET Qt5::Widgets) | ||
13 | set(libkauth_SRCS | 13 | # TODO KF6 Rename KAuth to KAuthWidgets | ||
14 | # TODO KAuthCore should be installed also when no widgets available, in the header installation etc, so ignoring for now | ||||
15 | set(libkauth_core_SRCS | ||||
14 | kauthaction.cpp | 16 | kauthaction.cpp | ||
15 | kauthactionreply.cpp | 17 | kauthactionreply.cpp | ||
16 | kauthexecutejob.cpp | 18 | kauthexecutejob.cpp | ||
17 | kauthobjectdecorator.cpp | | |||
18 | AuthBackend.cpp | 19 | AuthBackend.cpp | ||
19 | BackendsManager.cpp | 20 | BackendsManager.cpp | ||
20 | HelperProxy.cpp | 21 | HelperProxy.cpp | ||
21 | kauthhelpersupport.cpp | 22 | kauthhelpersupport.cpp | ||
22 | ${kauthdebug_SRCS} | 23 | ${kauthdebug_SRCS} | ||
23 | backends/fake/FakeBackend.cpp | 24 | backends/fake/FakeBackend.cpp | ||
24 | backends/fakehelper/FakeHelperProxy.cpp | 25 | backends/fakehelper/FakeHelperProxy.cpp | ||
25 | ${KAuth_QM_LOADER} | 26 | ${KAuth_QM_LOADER} | ||
26 | ) | 27 | ) | ||
27 | 28 | | |||
29 | add_library(KF5AuthCore ${libkauth_core_SRCS}) | ||||
apol: How about we call it KF5AuthCore? | |||||
30 | target_link_libraries(KF5AuthCore PUBLIC Qt5::Core KF5::CoreAddons) # for KJob | ||||
31 | target_link_libraries(KF5AuthCore PRIVATE Qt5::DBus) | ||||
32 | target_include_directories(KF5AuthCore INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KAuth>") | ||||
33 | install(TARGETS KF5AuthCore EXPORT KF5AuthTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) | ||||
34 | set_target_properties(KF5AuthCore PROPERTIES VERSION ${KAUTH_VERSION_STRING} | ||||
35 | SOVERSION ${KAUTH_SOVERSION} | ||||
36 | EXPORT_NAME AuthCore) | ||||
37 | | ||||
38 | set(libkauth_SRCS | ||||
39 | ${kauthdebug_SRCS} | ||||
40 | kauthobjectdecorator.cpp | ||||
41 | ) | ||||
42 | | ||||
28 | add_library(KF5Auth ${libkauth_SRCS}) | 43 | add_library(KF5Auth ${libkauth_SRCS}) | ||
29 | generate_export_header(KF5Auth BASE_NAME KAuth) | 44 | generate_export_header(KF5Auth BASE_NAME KAuth) | ||
30 | add_library(KF5::Auth ALIAS KF5Auth) | 45 | add_library(KF5::Auth ALIAS KF5Auth) | ||
31 | 46 | | |||
32 | target_include_directories(KF5Auth INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KAuth>") | 47 | target_include_directories(KF5Auth INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KAuth>") | ||
33 | 48 | | |||
34 | target_link_libraries(KF5Auth PUBLIC Qt5::Core KF5::CoreAddons) # for KJob | 49 | target_link_libraries(KF5Auth PUBLIC KF5AuthCore) | ||
35 | target_link_libraries(KF5Auth PRIVATE Qt5::Widgets Qt5::DBus) | 50 | target_link_libraries(KF5Auth PRIVATE Qt5::Widgets) | ||
36 | set_target_properties(KF5Auth PROPERTIES VERSION ${KAUTH_VERSION_STRING} | 51 | set_target_properties(KF5Auth PROPERTIES VERSION ${KAUTH_VERSION_STRING} | ||
37 | SOVERSION ${KAUTH_SOVERSION} | 52 | SOVERSION ${KAUTH_SOVERSION} | ||
38 | EXPORT_NAME Auth | 53 | EXPORT_NAME Auth | ||
39 | ) | 54 | ) | ||
40 | 55 | | |||
41 | ecm_generate_headers(KAuth_HEADERS | 56 | ecm_generate_headers(KAuth_HEADERS | ||
42 | HEADER_NAMES | 57 | HEADER_NAMES | ||
43 | KAuth | 58 | KAuth | ||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |
How about we call it KF5AuthCore?