diff options
author | Slávek Banko <[email protected]> | 2018-08-25 16:16:25 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-09-01 18:41:35 +0200 |
commit | 00d0589dc5f8d9bd8ad08c0ea284fae685dc5647 (patch) | |
tree | 4466015ecbbb1d870c49c72097d98f0c4e8c4086 /knetworkconf | |
parent | 74d59d78840da38cdcbe4dacb032fec2e0f2f437 (diff) | |
download | tdeadmin-00d0589dc5f8d9bd8ad08c0ea284fae685dc5647.tar.gz tdeadmin-00d0589dc5f8d9bd8ad08c0ea284fae685dc5647.zip |
cmake knetworkconf: Add backend files processing
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'knetworkconf')
-rw-r--r-- | knetworkconf/backends/CMakeLists.txt | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/knetworkconf/backends/CMakeLists.txt b/knetworkconf/backends/CMakeLists.txt index 89a876b..201229a 100644 --- a/knetworkconf/backends/CMakeLists.txt +++ b/knetworkconf/backends/CMakeLists.txt @@ -1 +1,47 @@ -# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer +############################################### +# +# Improvements and feedbacks are welcome +# +# This file is released under GPL >= 3 +# +############################################### + +# set variables for backend files +set( prefix "${CMAKE_INSTALL_PREFIX}" ) +set( localedir "${LOCALE_INSTALL_DIR}" ) +set( GETTEXT_PACKAGE "knetworkconf" ) +set( scriptsdir "${DATA_INSTALL_DIR}/knetworkconf/backends" ) +set( filesdir "files" ) + + +# process perl files +set( knetworkconf_backends + network-conf +) +set( knetworkconf_perl_libs + debug.pl + file.pl + general.pl + network.pl + parse.pl + platform.pl + process.pl + replace.pl + report.pl + service.pl + service-list.pl + util.pl + xml.pl +) + +foreach(perlfile ${knetworkconf_backends} ${knetworkconf_perl_libs} ) + configure_file( ${perlfile}.in ${perlfile} @ONLY ) + install( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${perlfile} + DESTINATION ${DATA_INSTALL_DIR}/knetworkconf/backends ) +endforeach(perlfile) + + +# process pkg-config file +configure_file( system-tools-backends.pc.in system-tools-backends.pc @ONLY ) +install( FILES ${CMAKE_CURRENT_BINARY_DIR}/system-tools-backends.pc + DESTINATION ${PKGCONFIG_INSTALL_DIR} ) |