Warning, /network/smb4k/smb4k/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-License-Identifier: BSD-2-Clause 0002 # SPDX-FileCopyrightText: 2009-2023 Alexander Reinholdt <alexander.reinholdt@kdemail.net> 0003 0004 include_directories( 0005 ${CMAKE_CURRENT_SOURCE_DIR} 0006 ${CMAKE_CURRENT_BINARY_DIR} 0007 ${CMAKE_SOURCE_DIR}/core 0008 ${CMAKE_BINARY_DIR}/core 0009 ${CMAKE_SOURCE_DIR} 0010 ${CMAKE_BINARY_DIR}) 0011 0012 add_subdirectory(icons) 0013 0014 ########### Configuration dialog ##################### 0015 0016 set(smb4kconfigdialog_LIB_SRCS 0017 smb4kconfigdialog.cpp 0018 smb4kconfigpageauthentication.cpp 0019 smb4kconfigpagebookmarks.cpp 0020 smb4kconfigpagecustomsettings.cpp 0021 smb4kconfigpagemounting.cpp 0022 smb4kconfigpagenetwork.cpp 0023 smb4kconfigpageprofiles.cpp 0024 smb4kconfigpagesynchronization.cpp 0025 smb4kconfigpageuserinterface.cpp 0026 smb4kcustomsettingseditorwidget.cpp) 0027 0028 add_library(smb4kconfigdialog MODULE ${smb4kconfigdialog_LIB_SRCS}) 0029 0030 target_link_libraries(smb4kconfigdialog 0031 Qt${QT_MAJOR_VERSION}::Core 0032 Qt${QT_MAJOR_VERSION}::Widgets 0033 Qt${QT_MAJOR_VERSION}::Gui 0034 KF${QT_MAJOR_VERSION}::WidgetsAddons 0035 KF${QT_MAJOR_VERSION}::CoreAddons 0036 KF${QT_MAJOR_VERSION}::XmlGui 0037 KF${QT_MAJOR_VERSION}::IconThemes 0038 KF${QT_MAJOR_VERSION}::I18n 0039 KF${QT_MAJOR_VERSION}::ConfigCore 0040 KF${QT_MAJOR_VERSION}::ConfigGui 0041 KF${QT_MAJOR_VERSION}::KIOCore 0042 KF${QT_MAJOR_VERSION}::KIOWidgets 0043 KF${QT_MAJOR_VERSION}::WindowSystem 0044 smb4kcore) 0045 0046 if (SMB4K_WITH_WS_DISCOVERY) 0047 target_compile_definitions(smb4kconfigdialog PRIVATE USE_WS_DISCOVERY=${SMB4K_WITH_WS_DISCOVERY}) 0048 endif(SMB4K_WITH_WS_DISCOVERY) 0049 0050 ########### Dialogs ################################ 0051 0052 set(smb4kdialogs_LIB_SRCS 0053 smb4kbookmarkdialog.cpp 0054 smb4kbookmarkeditor.cpp 0055 smb4kconfigpagebookmarks.cpp 0056 smb4kcustomsettingseditor.cpp 0057 smb4kcustomsettingseditorwidget.cpp 0058 smb4khomesuserdialog.cpp 0059 smb4kmountdialog.cpp 0060 smb4kpassworddialog.cpp 0061 smb4kpreviewdialog.cpp 0062 smb4kprintdialog.cpp 0063 smb4ksynchronizationdialog.cpp) 0064 0065 add_library(smb4kdialogs SHARED ${smb4kdialogs_LIB_SRCS}) 0066 0067 target_link_libraries(smb4kdialogs 0068 smb4kcore 0069 Qt${QT_MAJOR_VERSION}::Core 0070 Qt${QT_MAJOR_VERSION}::Widgets 0071 KF${QT_MAJOR_VERSION}::Completion 0072 KF${QT_MAJOR_VERSION}::ConfigGui 0073 KF${QT_MAJOR_VERSION}::CoreAddons 0074 KF${QT_MAJOR_VERSION}::I18n 0075 KF${QT_MAJOR_VERSION}::IconThemes) 0076 0077 ########### Main Application ######################### 0078 0079 set(smb4k_SRCS 0080 main.cpp 0081 smb4k.qrc 0082 smb4kbookmarkmenu.cpp 0083 smb4kprofilesmenu.cpp 0084 smb4kmainwindow.cpp 0085 smb4knetworkbrowser.cpp 0086 smb4knetworkbrowseritem.cpp 0087 smb4knetworkbrowserdockwidget.cpp 0088 smb4knetworksearchtoolbar.cpp 0089 smb4ksharesmenu.cpp 0090 smb4ksharesview.cpp 0091 smb4ksharesviewitem.cpp 0092 smb4ksharesviewdockwidget.cpp 0093 smb4ksystemtray.cpp 0094 smb4ktooltip.cpp) 0095 0096 add_executable(smb4k ${smb4k_SRCS}) 0097 0098 target_link_libraries(smb4k 0099 smb4kcore 0100 smb4kdialogs 0101 Qt${QT_MAJOR_VERSION}::Core 0102 Qt${QT_MAJOR_VERSION}::Gui 0103 Qt${QT_MAJOR_VERSION}::Widgets 0104 KF${QT_MAJOR_VERSION}::CoreAddons 0105 KF${QT_MAJOR_VERSION}::WidgetsAddons 0106 KF${QT_MAJOR_VERSION}::DBusAddons 0107 KF${QT_MAJOR_VERSION}::XmlGui 0108 KF${QT_MAJOR_VERSION}::I18n 0109 KF${QT_MAJOR_VERSION}::IconThemes 0110 KF${QT_MAJOR_VERSION}::KIOCore 0111 KF${QT_MAJOR_VERSION}::ConfigWidgets 0112 KF${QT_MAJOR_VERSION}::Crash 0113 KF${QT_MAJOR_VERSION}::WindowSystem) 0114 0115 if (QT_MAJOR_VERSION STREQUAL "6") 0116 target_link_libraries(smb4k KF6::StatusNotifierItem) 0117 endif() 0118 0119 ########### install files ############### 0120 0121 install(TARGETS smb4kconfigdialog DESTINATION ${KDE_INSTALL_PLUGINDIR}) 0122 install(TARGETS smb4kdialogs DESTINATION ${KDE_INSTALL_LIBDIR}) 0123 install(TARGETS smb4k DESTINATION ${KDE_INSTALL_BINDIR}) 0124 0125 install(PROGRAMS org.kde.smb4k.desktop DESTINATION ${KDE_INSTALL_APPDIR}) 0126 0127 install(FILES org.kde.smb4k.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) 0128