[kdenetwork/filesharing] added cmake support

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237323 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 14 years ago
parent 62bceb28d5
commit 2baeea3677

@ -91,6 +91,7 @@ option( BUILD_KOPETE_PLUGIN_SMPPPDCS "Build smpppdcs kopete plugin" ${BUILD_KOPE
option( BUILD_ALL "Build all" OFF ) option( BUILD_ALL "Build all" OFF )
option( BUILD_DCOPRSS "Build dcoprss" ${BUILD_ALL} ) option( BUILD_DCOPRSS "Build dcoprss" ${BUILD_ALL} )
option( BUILD_FILESHARING "Build filesharing" ${BUILD_ALL} )
option( BUILD_DOC "Build doc" ${BUILD_ALL} ) option( BUILD_DOC "Build doc" ${BUILD_ALL} )
option( BUILD_KOPETE "Build kopete" ${BUILD_ALL} ) option( BUILD_KOPETE "Build kopete" ${BUILD_ALL} )
option( BUILD_LIBRSS "Build librss" ${BUILD_ALL} ) option( BUILD_LIBRSS "Build librss" ${BUILD_ALL} )
@ -115,6 +116,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
##### kdenetwork directories #################### ##### kdenetwork directories ####################
tde_conditional_add_subdirectory( BUILD_DCOPRSS dcoprss ) tde_conditional_add_subdirectory( BUILD_DCOPRSS dcoprss )
tde_conditional_add_subdirectory( BUILD_FILESHARING filesharing )
tde_conditional_add_subdirectory( BUILD_DOC doc ) tde_conditional_add_subdirectory( BUILD_DOC doc )
tde_conditional_add_subdirectory( BUILD_KOPETE kopete ) tde_conditional_add_subdirectory( BUILD_KOPETE kopete )
tde_conditional_add_subdirectory( BUILD_LIBRSS librss ) tde_conditional_add_subdirectory( BUILD_LIBRSS librss )

@ -0,0 +1,13 @@
#################################################
#
# (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( advanced )
add_subdirectory( simple )

@ -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 )

@ -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}
)

@ -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
)

@ -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}
)

@ -0,0 +1,41 @@
#################################################
#
# (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}
${CMAKE_CURRENT_SOURCE_DIR}/../advanced/propsdlgplugin
${CMAKE_CURRENT_BINARY_DIR}/../advanced/propsdlgplugin
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES fileshare.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
##### kcm_fileshare (module) ####################
tde_add_kpart( kcm_fileshare AUTOMOC
SOURCES
fileshare.cpp controlcenter.ui groupconfiggui.ui groupconfigdlg.cpp
krichtextlabel.cpp
LINK
propsdlgplugin_common-static filesharenfs-static filesharesamba-static
kio-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
Loading…
Cancel
Save