From 2baeea36772bd5221b90552b9e498acff5391f4a Mon Sep 17 00:00:00 2001 From: samelian Date: Fri, 17 Jun 2011 21:51:51 +0000 Subject: [kdenetwork/filesharing] added cmake support git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237323 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- filesharing/advanced/CMakeLists.txt | 14 ++++++ filesharing/advanced/kcm_sambaconf/CMakeLists.txt | 51 ++++++++++++++++++++++ filesharing/advanced/nfs/CMakeLists.txt | 25 +++++++++++ filesharing/advanced/propsdlgplugin/CMakeLists.txt | 46 +++++++++++++++++++ 4 files changed, 136 insertions(+) create mode 100644 filesharing/advanced/CMakeLists.txt create mode 100644 filesharing/advanced/kcm_sambaconf/CMakeLists.txt create mode 100644 filesharing/advanced/nfs/CMakeLists.txt create mode 100644 filesharing/advanced/propsdlgplugin/CMakeLists.txt (limited to 'filesharing/advanced') diff --git a/filesharing/advanced/CMakeLists.txt b/filesharing/advanced/CMakeLists.txt new file mode 100644 index 00000000..d4c7d970 --- /dev/null +++ b/filesharing/advanced/CMakeLists.txt @@ -0,0 +1,14 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( nfs ) +add_subdirectory( kcm_sambaconf ) +add_subdirectory( propsdlgplugin ) diff --git a/filesharing/advanced/kcm_sambaconf/CMakeLists.txt b/filesharing/advanced/kcm_sambaconf/CMakeLists.txt new file mode 100644 index 00000000..9ed92497 --- /dev/null +++ b/filesharing/advanced/kcm_sambaconf/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +tde_install_icons( ) +install( FILES kcmsambaconf.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) + + +##### filesharesamba (static) ################### + +tde_add_library( filesharesamba STATIC_PIC AUTOMOC + SOURCES + sambafile.cpp share.ui sharedlgimpl.cpp sambashare.cpp + socketoptionsdlg.ui common.cpp userselectdlg.ui + groupselectdlg.ui usertab.ui usertabimpl.cpp filemodedlg.ui + filemodedlgimpl.cpp smbpasswdfile.cpp passwd.cpp hiddenfileview.cpp + dictmanager.cpp qmultichecklistitem.cpp smbconfconfigwidget.cpp + linuxpermissionchecker.cpp expertuserdlg.ui +) + + +##### kcm_kcmsambaconf (module) ################# + +tde_add_kpart( kcm_kcmsambaconf AUTOMOC + SOURCES + kcminterface.ui kcmprinterdlg.ui printerdlgimpl.cpp kcmsambaconf.cpp + joindomaindlg.ui + LINK filesharesamba-static kdeprint-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/filesharing/advanced/nfs/CMakeLists.txt b/filesharing/advanced/nfs/CMakeLists.txt new file mode 100644 index 00000000..9aee09a9 --- /dev/null +++ b/filesharing/advanced/nfs/CMakeLists.txt @@ -0,0 +1,25 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + + +##### filesharenfs (static) ##################### + +tde_add_library( filesharenfs STATIC_PIC AUTOMOC + SOURCES + nfsdialog.cpp nfshostdlg.cpp hostprops.ui nfsdialoggui.ui nfsfile.cpp + nfsentry.cpp +) diff --git a/filesharing/advanced/propsdlgplugin/CMakeLists.txt b/filesharing/advanced/propsdlgplugin/CMakeLists.txt new file mode 100644 index 00000000..f6477d19 --- /dev/null +++ b/filesharing/advanced/propsdlgplugin/CMakeLists.txt @@ -0,0 +1,46 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR}/../kcm_sambaconf + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES + fileshare_propsdlgplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### propsdlgplugin_common (static) ############ + +tde_add_library( propsdlgplugin_common STATIC_PIC AUTOMOC + SOURCES propertiespage.cpp propertiespagegui.ui +) + + +##### fileshare_propsdlgplugin (module) ######### + +tde_add_kpart( fileshare_propsdlgplugin AUTOMOC + SOURCES propsdlgshareplugin.cpp + LINK + propsdlgplugin_common-static filesharenfs-static + filesharesamba-static kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) -- cgit v1.2.1