From 78e0d2cd45f327df654c8dd17f7098271398177f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Nov 2011 14:09:13 -0600 Subject: Initial conversion of kio-locate to CMake This probably won't build yet --- src/CMakeLists.txt | 46 ++++++++++++++++++++++++++++++++++++++++++++++ src/SConscript | 40 ---------------------------------------- 2 files changed, 46 insertions(+), 40 deletions(-) create mode 100644 src/CMakeLists.txt delete mode 100644 src/SConscript (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..6677503 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,46 @@ +################################################# +# +# (C) 2011 Timothy Pearson +# kb9vqf (AT) pearsoncomputing.net +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/tdecore + ${CMAKE_SOURCE_DIR}/tdecore + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES locate.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES locater.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES rlocate.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES locate.desktop DESTINATION ${SERVICES_INSTALL_DIR}/searchproviders ) + + +##### kbzip2filter ############################## + +set( target kio_locate ) + +set( ${target}_SRCS + klocateconfig.kcfgc klocateconfigwidget.ui klocateconfigfilterwidget.ui + klocateconfiglocatewidget.ui kio_locate.cpp locater.cpp pattern.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) \ No newline at end of file diff --git a/src/SConscript b/src/SConscript deleted file mode 100644 index 4b27cee..0000000 --- a/src/SConscript +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/python -# kio-locate -# -# Copyright (C) 2005 by Tobi Vollebregt -# tobivollebregt@gmail.com -# -# Thanks to Google's Summer Of Code Program! -# -# Copyright (C) 2005 by Armin Straub -# linux@arminstraub.de -# -# Adapted from the example shipping with bksys. -# Thomas Nagy, 2004, 2005 -# Thanks for this great tool! - -Import('env') - -# The kioslave library is kio_test5.so and not libkio_test5.so (empty string) -obj=env.kobject('kioslave') -obj.target='kio_locate' -obj.source=""" - klocateconfig.kcfgc - klocateconfigwidget.ui - klocateconfigfilterwidget.ui - klocateconfiglocatewidget.ui - kio_locate.cpp - locater.cpp - pattern.cpp -""" -obj.libs='tqt kio' -obj.linkflags='-module' # add more link flags -obj.execute() - -# Install the protocol files -env.KDEinstall('KDESERV', '', 'locate.protocol') -env.KDEinstall('KDESERV', '', 'locater.protocol') -env.KDEinstall('KDESERV', '', 'rlocate.protocol') - -# Install the searchprovider file -env.KDEinstall('KDESERV', '/searchproviders', 'locate.desktop') -- cgit v1.2.1