Changeset View
Changeset View
Standalone View
Standalone View
Modules/samba/CMakeLists.txt
1 | add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS) | 1 | add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS) | ||
---|---|---|---|---|---|
2 | # KI18N Translation Domain for this library | 2 | # KI18N Translation Domain for this library | ||
3 | add_definitions(-DTRANSLATION_DOMAIN=\"kcmsamba\") | 3 | add_definitions(-DTRANSLATION_DOMAIN=\"kcmsamba\") | ||
4 | 4 | | |||
5 | set(kcm_samba_PART_SRCS | 5 | set(kcm_samba_PART_SRCS | ||
6 | main.cpp | 6 | smbmountmodel.cpp | ||
7 | ksmbstatus.cpp | 7 | ksambasharemodel.cpp | ||
8 | kcmsambaimports.cpp | 8 | ) | ||
9 | kcmsambalog.cpp | | |||
10 | kcmsambastatistics.cpp ) | | |||
11 | | ||||
12 | | ||||
13 | add_library(kcm_samba MODULE ${kcm_samba_PART_SRCS}) | | |||
14 | | ||||
15 | 9 | | |||
16 | target_link_libraries(kcm_samba | 10 | # Intermediate lib for use in testing. | ||
11 | add_library(kcm_samba_static STATIC ${kcm_samba_PART_SRCS}) | ||||
12 | target_link_libraries(kcm_samba_static | ||||
13 | KF5::KIOCore | ||||
14 | KF5::Solid | ||||
15 | KF5::I18n | ||||
17 | KF5::I18n | 16 | KF5::I18n | ||
18 | KF5::KCMUtils | 17 | KF5::KCMUtils | ||
19 | KF5::KIOCore | | |||
20 | KF5::KIOWidgets | | |||
21 | ) | 18 | ) | ||
22 | 19 | | |||
23 | install(TARGETS kcm_samba DESTINATION ${PLUGIN_INSTALL_DIR} ) | 20 | add_library(kcm_samba MODULE main.cpp) | ||
24 | 21 | target_link_libraries(kcm_samba | |||
25 | 22 | kcm_samba_static | |||
26 | ########### install files ############### | 23 | ) | ||
27 | 24 | | |||
25 | install(TARGETS kcm_samba DESTINATION ${PLUGIN_INSTALL_DIR}) | ||||
28 | install( FILES smbstatus.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) | 26 | install(FILES smbstatus.desktop DESTINATION ${SERVICES_INSTALL_DIR}) | ||
27 | | ||||
28 | add_subdirectory(autotests) |