Changeset View
Changeset View
Standalone View
Standalone View
recentlyused/CMakeLists.txt
- This file was added.
1 | add_definitions(-DTRANSLATION_DOMAIN=\"kio5_recentlyused\") | ||||
---|---|---|---|---|---|
2 | | ||||
3 | set( | ||||
4 | kio_recentlyused_SRCS | ||||
dfaure: this was already done by the parent CMakeLists.txt, wasn't it? Why do it again? | |||||
5 | recentlyused.cpp | ||||
6 | ) | ||||
7 | | ||||
8 | ecm_qt_declare_logging_category(kio_recentlyused_SRCS | ||||
9 | HEADER recentlyused-logsettings.h | ||||
10 | IDENTIFIER KIO_RECENTLYUSED_LOG | ||||
11 | CATEGORY_NAME log_kio_recentlyused) | ||||
12 | | ||||
dfaure: join with previous line, it looks very strange this way | |||||
13 | add_library(recentlyused MODULE ${kio_recentlyused_SRCS}) | ||||
14 | | ||||
15 | target_link_libraries(recentlyused | ||||
16 | KF5::KIOCore | ||||
17 | KF5::I18n | ||||
18 | KF5::Activities | ||||
19 | KF5::ActivitiesStats) | ||||
20 | set_target_properties(recentlyused PROPERTIES OUTPUT_NAME "recentlyused") | ||||
21 | set_target_properties(recentlyused PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/kio") | ||||
22 | install(TARGETS recentlyused DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kio) | ||||
You should also set LIBRARY_OUTPUT_DIRECTORY, see https://community.kde.org/Guidelines_and_HOWTOs/Making_apps_run_uninstalled dfaure: You should also set LIBRARY_OUTPUT_DIRECTORY, see https://community.kde. | |||||
This will be the first ioslave in kio-extras using it... meven: This will be the first ioslave in kio-extras using it...
Some of the ioslave even use the old… |
this was already done by the parent CMakeLists.txt, wasn't it? Why do it again?