Warning, /network/smb4k/core/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include_directories(
0002 ${CMAKE_CURRENT_SOURCE_DIR}
0003 ${CMAKE_CURRENT_BINARY_DIR}
0004 ${CMAKE_SOURCE_DIR}
0005 ${CMAKE_BINARY_DIR}
0006 ${LIBSMBCLIENT_INCLUDE_DIRS})
0007
0008 set(smb4kcore_LIB_SRCS
0009 smb4kauthinfo.cpp
0010 smb4kbasicnetworkitem.cpp
0011 smb4kbookmark.cpp
0012 smb4kbookmarkhandler.cpp
0013 smb4kbookmarkhandler_p.cpp
0014 smb4kclient.cpp
0015 smb4kclient_p.cpp
0016 smb4kcustomoptions.cpp
0017 smb4kcustomoptionsmanager.cpp
0018 smb4kcustomoptionsmanager_p.cpp
0019 smb4kfile.cpp
0020 smb4kglobal.cpp
0021 smb4kglobal_p.cpp
0022 smb4khardwareinterface.cpp
0023 smb4khardwareinterface_p.cpp
0024 smb4khomesshareshandler.cpp
0025 smb4khomesshareshandler_p.cpp
0026 smb4khost.cpp
0027 smb4kmounter.cpp
0028 smb4kmounter_p.cpp
0029 smb4knotification.cpp
0030 smb4knotification_p.cpp
0031 smb4kprofilemanager.cpp
0032 smb4kprofilemanager_p.cpp
0033 smb4kshare.cpp
0034 smb4ksynchronizer.cpp
0035 smb4ksynchronizer_p.cpp
0036 smb4kwalletmanager.cpp
0037 smb4kwalletmanager_p.cpp
0038 smb4kworkgroup.cpp)
0039
0040 if (${CMAKE_HOST_SYSTEM_NAME} MATCHES "Linux")
0041 kconfig_add_kcfg_files(smb4kcore_LIB_SRCS
0042 smb4ksettings.kcfgc
0043 smb4kmountsettings_linux.kcfgc)
0044 elseif(${CMAKE_HOST_SYSTEM_NAME} MATCHES "FreeBSD" OR
0045 ${CMAKE_HOST_SYSTEM_NAME} MATCHES "NetBSD" OR
0046 ${CMAKE_HOST_SYSTEM_NAME} MATCHES "DragonFly")
0047 kconfig_add_kcfg_files(smb4kcore_LIB_SRCS
0048 smb4ksettings.kcfgc
0049 smb4kmountsettings_bsd.kcfgc)
0050 else ()
0051 kconfig_add_kcfg_files(smb4kcore_LIB_SRCS
0052 smb4ksettings.kcfgc)
0053 endif ()
0054
0055 add_library(smb4kcore SHARED ${smb4kcore_LIB_SRCS})
0056
0057 target_link_libraries(smb4kcore
0058 Qt5::Core
0059 Qt5::Widgets
0060 Qt5::Gui
0061 Qt5::Test
0062 Qt5::PrintSupport
0063 Qt5::Network
0064 Qt5::Qml
0065 KF5::ConfigCore
0066 KF5::ConfigGui
0067 ${AUTHLIB}
0068 KF5::IconThemes
0069 KF5::I18n
0070 KF5::Completion
0071 KF5::CoreAddons
0072 KF5::Solid
0073 KF5::KIOCore
0074 KF5::KIOWidgets
0075 KF5::Notifications
0076 KF5::JobWidgets
0077 KF5::Wallet
0078 KF5::XmlGui
0079 ${LIBSMBCLIENT_LIBRARIES})
0080
0081 set_target_properties(smb4kcore PROPERTIES VERSION 6.0.0 SOVERSION 6)
0082 install(TARGETS smb4kcore DESTINATION ${KDE_INSTALL_LIBDIR})
0083
0084
0085 ########### install files ###############
0086
0087 install(FILES smb4k.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
0088 install(FILES smb4k.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR})
0089
0090 if (INSTALL_HEADER_FILES)
0091 install(FILES
0092 smb4kauthinfo.h
0093 smb4kbasicnetworkitem.h
0094 smb4kbookmark.h
0095 smb4kbookmarkhandler.h
0096 smb4kclient.h
0097 smb4kcustomoptions.h
0098 smb4kcustomoptionsmanager.h
0099 smb4kfile.h
0100 smb4kglobal.h
0101 smb4khardwareinterface.h
0102 smb4khomesshareshandler.h
0103 smb4khost.h
0104 smb4kmounter.h
0105 smb4knotification.h
0106 smb4kprocess.h
0107 smb4kprofilemanager.h
0108 smb4kshare.h
0109 smb4ksynchronizer.h
0110 smb4kwalletmanager.h
0111 smb4kworkgroup.h
0112 DESTINATION ${KDE_INSTALL_INCLUDEDIR})
0113 endif (INSTALL_HEADER_FILES)