From 00d0589dc5f8d9bd8ad08c0ea284fae685dc5647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 25 Aug 2018 16:16:25 +0200 Subject: cmake knetworkconf: Add backend files processing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- knetworkconf/backends/CMakeLists.txt | 48 +++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) (limited to 'knetworkconf/backends') 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} ) -- cgit v1.2.1