CMake conversion

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/20/head
Michele Calgaro 4 months ago
parent 9e9d5b5460
commit c5271c6711
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -0,0 +1,84 @@
############################################
# #
# Improvements and feedbacks are welcome #
# #
# This file is released under GPL >= 3 #
# #
############################################
##### set project version ########################
include( TDEVersion )
cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
tde_set_project_version( )
#### general package setup
project( kmyfirewall )
#### include essential cmake modules
include( FindPkgConfig )
include( CheckSymbolExists )
include( CheckIncludeFile )
include( CheckLibraryExists )
include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles )
#### include our cmake modules
include( TDEMacros )
##### setup install paths
include( TDESetupPaths )
tde_setup_paths( )
##### optional stuff
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
##### user requested modules
option( BUILD_ALL "Build all" ON )
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
##### configure checks
include( ConfigureChecks.cmake )
###### global compiler settings
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
##### directories
add_subdirectory( kmyfirewall )
add_subdirectory( pics )
add_subdirectory( templates )
##### other data ################################
tde_conditional_add_project_docs( BUILD_DOC )
tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
##### write configure files
configure_file( config.h.cmake config.h @ONLY )

@ -0,0 +1,34 @@
###########################################
# #
# Improvements and feedback are welcome #
# #
# This file is released under GPL >= 3 #
# #
###########################################
# required stuff
find_package( TQt )
find_package( TDE )
tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
tde_setup_largefiles( )
##### check for gcc visibility support
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( WITH_GCC_VISIBILITY )
##### check for supported OS
if( NOT CMAKE_SYSTEM_NAME STREQUAL "Linux" )
tde_message_fatal( "KMyFirewall can only be built on Linux systems." )
endif( )

@ -0,0 +1,8 @@
#define VERSION "@VERSION@"
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
#cmakedefine __TDE_HAVE_GCC_VISIBILITY 1
// Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
// significant byte first (like Motorola and SPARC, unlike Intel).
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@

@ -0,0 +1,58 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}/kmfwidgets
${CMAKE_CURRENT_SOURCE_DIR}/core
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### subfolders
add_subdirectory( core )
add_subdirectory( kmfwidgets )
add_subdirectory( installer )
add_subdirectory( ipteditor )
add_subdirectory( compilers )
add_subdirectory( genericinterface )
add_subdirectory( ruleoptionplugins )
##### kmyfirewall (executable)
tde_add_executable( kmyfirewall AUTOMOC
SOURCES kmfconfigdialog.cpp kmyfirewall.cpp main.cpp
LINK
kmfcore-shared kmfwidgets-shared tdecore-shared tdeui-shared tdeio-shared
tdeparts-shared tdefx-shared tdetexteditor-shared DCOP-shared
DESTINATION ${BIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmyfirewall.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
)
tde_create_translated_desktop(
SOURCE kmfrs.desktop kmfgrs.desktop kmfnet.desktop kmfpkg.desktop
DESTINATION ${MIME_INSTALL_DIR}/application
)
install(
FILES kmyfirewallui.rc
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall
)
install(
FILES kmyfirewallrc
DESTINATION ${SYSCONF_INSTALL_DIR}
)

@ -0,0 +1,13 @@
##### subfolders
if( CMAKE_SYSTEM_NAME STREQUAL "Linux" )
add_subdirectory( iptables )
endif( )
##### other data
tde_create_translated_desktop(
SOURCE kmfcompilerplugin.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR}
)

@ -0,0 +1,27 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}/kmyfirewall/kmfwidgets
)
##### libkmfcompiler_ipt
tde_add_library( kmfcompiler_ipt SHARED AUTOMOC
SOURCES
kmfiptablescompiler.cpp kmfiptablesscriptgenerator.cpp kmfiptablesdocumentconverter.cpp
LINK
kmfcore-shared kmfwidgets-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfcompiler_ipt.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
FILES kmfiptablescompiler.rc
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/kpartplugins
)

@ -0,0 +1,45 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
##### libkmfcore
tde_add_library( kmfcore SHARED AUTOMOC
SOURCES
ipaddress.cpp iptable.cpp iptchain.cpp iptrule.cpp iptruleoption.cpp kmfapp.cpp kmfappstate.cpp
kmfcheckinput.cpp kmfcompilerinterface.cpp kmfconfig.kcfgc kmfdoc.cpp kmferror.cpp
kmferrorhandler.cpp kmfgenericdoc.cpp kmfinstallerinterface.cpp kmfiptdoc.cpp kmfnethost.cpp
kmfnetwork.cpp kmfnetzone.cpp kmfnetzonelist.cpp kmfplugin.cpp kmfpluginfactory.cpp
kmfprotocol.cpp kmfprotocolcategory.cpp kmfprotocollibrary.cpp kmfprotocolusage.cpp
kmfruleeditinterface.cpp kmfruleoptioneditinterface.cpp kmfrulesetdoc.cpp
kmfruletargetoptioneditinterface.cpp kmftargetconfig.cpp kmftarget.cpp kmftransaction.cpp
kmfundoengine.cpp kmyfirewallinterface.cpp kprocesswrapper.cpp netfilterobject.cpp xmlnames.cpp
LINK
tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
VERSION 0.0.0
DESTINATION ${LIB_INSTALL_DIR}
)
##### other data
install(
FILES kmfprotocollibrary.xml
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/protocols
)
install(
FILES kmfconfig.kcfg
DESTINATION ${KCFG_INSTALL_DIR}
)
install(
FILES
ipaddress.h iptable.h iptchain.h iptrule.h iptruleoption.h kmfapp.h kmfappstate.h
kmfcheckinput.h kmfcompilerinterface.h kmfdoc.h kmferror.h kmferrorhandler.h kmfgenericdoc.h
kmfinstallerinterface.h kmfiptdoc.h kmfnethost.h kmfnetwork.h kmfnetzone.h kmfnetzonelist.h
kmfplugin.h kmfpluginfactory.h kmfprotocol.h kmfprotocolcategory.h kmfprotocollibrary.h
kmfprotocolusage.h kmfruleeditinterface.h kmfruleoptioneditinterface.h kmfrulesetdoc.h
kmfruletargetoptioneditinterface.h kmftargetconfig.h kmftarget.h kmftransaction.h
kmfundoengine.h kmyfirewallinterface.h kprocesswrapper.h netfilterobject.h xmlnames.h
DESTINATION ${INCLUDE_INSTALL_DIR}/kmyfirewall/core
)

@ -0,0 +1,27 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}/kmyfirewall/kmfwidgets
)
##### libkmfgenericinterfacepart
tde_add_library( kmfgenericinterfacepart SHARED AUTOMOC
SOURCES
kmfgenericinterface_part.cpp kmfgenericinterfaceprotocol.cpp kmfgenericinterfacenat.cpp
kmfgenericinterfacehost.cpp kmfgenericinterfacelogging.cpp kmyfirewallgenericinterfacelogging.ui
kmfgenericinterfaceicmp.cpp kmyfirewallgenericinterfaceicmp.ui
kmyfirewallgenericinterfacehostwidget.ui kmyfirewallgenericinterfacenatwidget.ui
kmyfirewallgenericinterfaceprotocolwidget.ui kmfgenericinterface.cpp
LINK
kmfcore-shared kmfwidgets-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
install(
FILES kmfgenericinterfacepartui.rc
DESTINATION ${DATA_INSTALL_DIR}/kmfgenericinterfacepart
)

@ -0,0 +1,38 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}/kmyfirewall/kmfwidgets
)
##### subfolders
if( CMAKE_SYSTEM_NAME STREQUAL "Linux" )
add_subdirectory( linux )
endif( )
##### libkmfinstallerplugin
tde_add_library( kmfinstallerplugin SHARED AUTOMOC
SOURCES kmfinstallerplugin.cpp
LINK kmfcore-shared kmfwidgets-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfinstallerplugin.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR}
)
install(
FILES README.InstallerPackage.txt
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall
)
install(
FILES kmfinstallerpluginui.rc
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/kpartplugins
)

@ -0,0 +1,26 @@
include_directories(
${CMAKE_BINARY_DIR}/kmyfirewall/kmfwidgets
${CMAKE_CURRENT_BINARY_DIR}
)
##### libkmfinstaller_linux
tde_add_library( kmfinstaller_linux SHARED AUTOMOC
SOURCES kmfiptinstaller.cpp
LINK kmfcore-shared kmfwidgets-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfinstaller_linux.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
PROGRAMS kmfinstall.sh kmfpkginstall.sh installpackage.sh autoconfighelper.sh
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/scripts/installer/linux
)

@ -0,0 +1,33 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}/kmyfirewall/kmfwidgets
)
##### libkmfipteditorpart
tde_add_library( kmfipteditorpart SHARED AUTOMOC
SOURCES
kmfchainedit.cpp kmfnewchaindlg.cpp kmfruleedit.cpp kmfipteditorpart.cpp
kmyfirewallchaineditor.ui kmyfirewallchaineditornewchain.ui kmyfirewallruleeditor.ui
LINK
kmfcore-shared kmfwidgets-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfipteditorpart.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
FILES kmfipteditorpartui.rc
DESTINATION ${DATA_INSTALL_DIR}/kmfipteditorpart
)
install(
FILES kmfruleoption_frag_option.xml
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/ruleoptions
)

@ -0,0 +1,38 @@
include_directories(
${CMAKE_SOURCE_DIR}/kmyfirewall/core
${CMAKE_CURRENT_BINARY_DIR}
)
##### libkmfwidgets
tde_add_library( kmfwidgets SHARED AUTOMOC
SOURCES
kmfchecklistitem.cpp kmfchecklistoutput.cpp
kmfdocumentinfo.cpp kmfgenericinterfaceeditprotocol.cpp kmfgenericinterfaceeditprotocol.h
kmfhostwidget.cpp kmfinterfacewidget.cpp kmfiptdocoptions.cpp kmfiptdocview.cpp
kmfipv4addresswidget.cpp kmflistview.cpp kmflistviewitem.cpp kmfmainwindow.cpp
kmfmultiportwidget.cpp kmfmynetworkwidget.cpp kmfnethostpropertieswidget.cpp
kmfnetworkwidget.cpp kmfnewdocdlg.cpp kmfobjectinfo.cpp kmfportwidget.cpp kmfprocout.cpp
kmfprotocollistview.cpp kmfprotocolpropertieswidget.cpp kmftqtdesignerplugin.cpp
kmfselectactivetarget.cpp kmfselectinterface.cpp kmfsystemsettingslinux.cpp
kmftemplatechooser.cpp kmftransactionlog.cpp kmyfirewalldocumentinfo.ui
kmyfirewallgenericinterfaceeditprotocolwidget.ui kmyfirewallhostwidget.ui kmyfirewallinterfacewidget.ui
kmyfirewalliptdocoptions.ui kmyfirewallipv4adddresswidget.ui kmyfirewallmultiportwidget.ui
kmyfirewallmynetworkwidget.ui kmyfirewallnethostproperties.ui kmyfirewallnetworkwidget.ui
kmyfirewallnewdocument.ui kmyfirewallobjectinfo.ui kmyfirewallportwidget.ui
kmyfirewallprotocollistview.ui kmyfirewallprotocolpropertieswidget.ui kmyfirewallselectactivetarget.ui
kmyfirewallselectinterface.ui kmyfirewallsystemsettingslinux.ui kmyfirewalltemplatechooser.ui
kmyfirewalltransactionlog.ui
LINK
kmfcore-shared
VERSION 0.0.0
DESTINATION ${LIB_INSTALL_DIR}
)
install(
FILES
kmfprocout.h kmflistview.h kmflistviewitem.h kmfmultiportwidget.h kmfportwidget.h
kmfchecklistoutput.h kmfnewdocdlg.h kmfchecklistitem.h kmfmainwindow.h kmfnetworkwidget.h
kmfiptdocoptions.h kmfobjectinfo.h ${CMAKE_CURRENT_BINARY_DIR}/kmyfirewallselectinterface.h
DESTINATION ${INCLUDE_INSTALL_DIR}/kmyfirewall/kmfwidgets
)

@ -0,0 +1,22 @@
##### subfolders
add_subdirectory( interface_option )
add_subdirectory( ip_option )
add_subdirectory( limit_option )
add_subdirectory( mac_option )
add_subdirectory( protocol_option )
add_subdirectory( state_option )
add_subdirectory( tos_option )
add_subdirectory( nat_target_option )
add_subdirectory( custom_option )
add_subdirectory( tos_target_option )
add_subdirectory( log_target_option )
add_subdirectory( mark_target_option )
##### other data
tde_create_translated_desktop(
SOURCE kmfruleoptionedit.desktop kmfruletargetoptionedit.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR}
)

@ -0,0 +1,26 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
##### libkmfruleoptionedit_custom
tde_add_library( kmfruleoptionedit_custom SHARED AUTOMOC
SOURCES
kmfruleoptioneditcustom.cpp kmfruleeditcustomopt.cpp kmyfirewallruleeditorcustomrule.ui
LINK
kmfcore-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfruleoptionedit_custom.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
FILES kmfruleoption_custom_option.xml
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/ruleoptions
)

@ -0,0 +1,26 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
##### libkmfruleoptionedit_interface
tde_add_library( kmfruleoptionedit_interface SHARED AUTOMOC
SOURCES
kmyfirewallruleeditorinterface.ui kmfruleeditorinterface.cpp kmfruleoptioneditinterface.cpp
LINK
kmfcore-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfruleoptionedit_interface.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
FILES kmfruleoption_interface_option.xml
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/ruleoptions
)

@ -0,0 +1,26 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
##### libkmfruleoptionedit_ip
tde_add_library( kmfruleoptionedit_ip SHARED AUTOMOC
SOURCES
kmfruleoptioneditip.cpp kmfruleeditip.cpp kmyfirewallruleeditorip.ui
LINK
kmfcore-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfruleoptionedit_ip.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
FILES kmfruleoption_ip_option.xml
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/ruleoptions
)

@ -0,0 +1,26 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
##### libkmfruleoptionedit_limit
tde_add_library( kmfruleoptionedit_limit SHARED AUTOMOC
SOURCES
kmfruleoptioneditlimit.cpp kmfruleeditorlimit.cpp kmyfirewallruleeditorlimit.ui
LINK
kmfcore-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfruleoptionedit_limit.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
FILES kmfruleoption_limit_option.xml
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/ruleoptions
)

@ -0,0 +1,27 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}/kmyfirewall/ipteditor
)
##### libkmfruletargetoptionedit_log
tde_add_library( kmfruletargetoptionedit_log SHARED AUTOMOC
SOURCES
kmfruletargetoptioneditlog.cpp kmfruleedittargetlog.cpp kmyfirewallruleeditortargetlog.ui
LINK
kmfcore-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfruletargetoptionedit_log.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
FILES kmfruleoption_target_log_option.xml
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/ruleoptions
)

@ -0,0 +1,26 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
##### libkmfruleoptionedit_mac
tde_add_library( kmfruleoptionedit_mac SHARED AUTOMOC
SOURCES
kmfruleoptioneditmac.cpp kmfruleeditmac.cpp kmyfirewallruleeditormac.ui
LINK
kmfcore-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfruleoptionedit_mac.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
FILES kmfruleoption_mac_option.xml
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/ruleoptions
)

@ -0,0 +1,26 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
##### libkmfruletargetoptionedit_mark
tde_add_library( kmfruletargetoptionedit_mark SHARED AUTOMOC
SOURCES
kmfruletargetoptioneditmark.cpp kmfruleedittargetmark.cpp kmyfirewallruleeditortargetmark.ui
LINK
kmfcore-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfruletargetoptionedit_mark.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
FILES kmfruleoption_target_mark_option.xml
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/ruleoptions
)

@ -0,0 +1,26 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
##### libkmfruletargetoptionedit_nat
tde_add_library( kmfruletargetoptionedit_nat SHARED AUTOMOC
SOURCES
kmfruletargetoptioneditnat.cpp kmfruleeditortargetnat.cpp kmyfirewallruleeditortargetnat.ui
LINK
kmfcore-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfruletargetoptionedit_nat.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
FILES kmfruleoption_target_nat_option.xml
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/ruleoptions
)

@ -0,0 +1,27 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}/kmyfirewall/kmfwidgets
)
##### libkmfruleoptionedit_protocol
tde_add_library( kmfruleoptionedit_protocol SHARED AUTOMOC
SOURCES
kmfruleoptioneditprotocol.cpp kmfruleeditorprotocol.cpp kmyfirewallruleeditorprotocol.ui
LINK
kmfcore-shared kmfwidgets-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfruleoptionedit_protocol.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
FILES kmfruleoption_protocol_option.xml
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/ruleoptions
)

@ -0,0 +1,26 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
##### libkmfruleoptionedit_state
tde_add_library( kmfruleoptionedit_state SHARED AUTOMOC
SOURCES
kmfruleoptioneditstate.cpp kmfruleeditorstate.cpp kmyfirewallruleeditorstate.ui
LINK
kmfcore-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfruleoptionedit_state.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
FILES kmfruleoption_state_option.xml
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/ruleoptions
)

@ -0,0 +1,26 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
##### libkmfruleoptionedit_tos
tde_add_library( kmfruleoptionedit_tos SHARED AUTOMOC
SOURCES
kmfruleoptionedittos.cpp kmfruleeditortos.cpp kmyfirewallruleeditortos.ui
LINK
kmfcore-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfruleoptionedit_tos.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
FILES kmfruleoption_tos_option.xml
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/ruleoptions
)

@ -0,0 +1,26 @@
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
##### libkmfruletargetoptionedit_tos
tde_add_library( kmfruletargetoptionedit_tos SHARED AUTOMOC
SOURCES
kmfruletargetoptionedittos.cpp kmfruleeditortos.cpp kmyfirewallruleeditortos.ui
LINK
kmfcore-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kmfruletargetoptionedit_tos.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
FILES kmfruleoption_target_tos_reject_option.xml
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/ruleoptions
)

@ -0,0 +1,168 @@
##### App icons
install(
FILES kmyfirewall-16.png
DESTINATION ${ICON_INSTALL_DIR}/hicolor/16x16/apps
RENAME kmyfirewall.png
)
install(
FILES kmyfirewall-22.png
DESTINATION ${ICON_INSTALL_DIR}/hicolor/22x22/apps
RENAME kmyfirewall.png
)
install(
FILES kmyfirewall-32.png
DESTINATION ${ICON_INSTALL_DIR}/hicolor/32x32/apps
RENAME kmyfirewall.png
)
install(
FILES kmyfirewall-48.png
DESTINATION ${ICON_INSTALL_DIR}/hicolor/48x48/apps
RENAME kmyfirewall.png
)
install(
FILES kmyfirewall-64.png
DESTINATION ${ICON_INSTALL_DIR}/hicolor/64x64/apps
RENAME kmyfirewall.png
)
install(
FILES kmyfirewall-16-lo.png
DESTINATION ${ICON_INSTALL_DIR}/locolor/16x16/apps
RENAME kmyfirewall.png
)
install(
FILES kmyfirewall-32-lo.png
DESTINATION ${ICON_INSTALL_DIR}/locolor/32x32/apps
RENAME kmyfirewall.png
)
install(
FILES kmyfirewall-48-lo.png
DESTINATION ${ICON_INSTALL_DIR}/locolor/48x48/apps
RENAME kmyfirewall.png
)
install(
FILES kmyfirewall.xpm
DESTINATION ${SHARE_INSTALL_PREFIX}/pixmaps
)
##### KMFMyFirewall
install(
FILES
kmf_snapshot_generic_interface.png kmf_snapshot_iptables_interface.png reject.png target.png
splash.png splash_cut.png
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/pics
)
install(
FILES builtin-16.png
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/icons/hicolor/16x16/actions
RENAME builtin.png
)
install(
FILES table-16.png
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/icons/hicolor/16x16/actions
RENAME table.png
)
install(
FILES user_defined-16.png
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/icons/hicolor/16x16/actions
RENAME user_defined.png
)
install(
FILES rule-16.png
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/icons/hicolor/16x16/actions
RENAME rule.png
)
install(
FILES rule-22.png
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/icons/hicolor/22x22/actions
RENAME rule.png
)
install(
FILES rule-32.png
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/icons/hicolor/32x32/actions
RENAME rule.png
)
install(
FILES rule-48.png
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/icons/hicolor/48x48/actions
RENAME rule.png
)
install(
FILES rule-64.png
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/icons/hicolor/64x64/actions
RENAME rule.png
)
##### KMFSysTray
install(
FILES reject.png target.png
DESTINATION ${DATA_INSTALL_DIR}/kmfsystray/pics
)
install(
FILES builtin-16.png
DESTINATION ${DATA_INSTALL_DIR}/kmfsystray/icons/hicolor/16x16/actions
RENAME builtin.png
)
install(
FILES table-16.png
DESTINATION ${DATA_INSTALL_DIR}/kmfsystray/icons/hicolor/16x16/actions
RENAME table.png
)
install(
FILES user_defined-16.png
DESTINATION ${DATA_INSTALL_DIR}/kmfsystray/icons/hicolor/16x16/actions
RENAME user_defined.png
)
install(
FILES rule-16.png
DESTINATION ${DATA_INSTALL_DIR}/kmfsystray/icons/hicolor/16x16/actions
RENAME rule.png
)
install(
FILES rule-22.png
DESTINATION ${DATA_INSTALL_DIR}/kmfsystray/icons/hicolor/22x22/actions
RENAME rule.png
)
install(
FILES rule-32.png
DESTINATION ${DATA_INSTALL_DIR}/kmfsystray/icons/hicolor/32x32/actions
RENAME rule.png
)
install(
FILES rule-48.png
DESTINATION ${DATA_INSTALL_DIR}/kmfsystray/icons/hicolor/48x48/actions
RENAME rule.png
)
install(
FILES rule-64.png
DESTINATION ${DATA_INSTALL_DIR}/kmfsystray/icons/hicolor/64x64/actions
RENAME rule.png
)

@ -0,0 +1,7 @@
install(
FILES
02_workstation_template.tkmfgrs 02_workstation_template.tkmfrs
03_nat_router_template.tkmfgrs 03_nat_router_template.tkmfrs
04_web_server_template.tkmfgrs 04_web_server_template.tkmfrs
DESTINATION ${DATA_INSTALL_DIR}/kmyfirewall/templates
)
Loading…
Cancel
Save