From kde-commits Sun Jun 03 17:30:32 2012 From: Michael Pyne Date: Sun, 03 Jun 2012 17:30:32 +0000 To: kde-commits Subject: KDE/kdesdk/scripts Message-Id: <20120603173032.20072AC76E () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=133874482101819 SVN commit 1298173 by mpyne: Add CMake buildsystem for kde-dev-scripts. I also removed some trailing whitespace while I'm at it. The buildsystem should allow for installing to the appropriate directory even if KDE 4 is not present, but KDE 4 directories are used if they can be found. This submodule was already optional in the top-level kdesdk so no change was required there. CCMAIL:kde-sdk-devel@kde.org M +15 -0 CMakeLists.txt --- trunk/KDE/kdesdk/scripts/CMakeLists.txt #1298172:1298173 @@ -1,4 +1,19 @@ +cmake_minimum_required(VERSION 2.8) +project(kde-dev-scripts) +find_package(KDE4) +if (KDE4_FOUND) + include(KDE4Defaults) + include(MacroLibrary) +else() + set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "The install dir for executables") +endif() + +# Note that all of these files should be *scripts* that do not require +# compilation, therefore we simply install them. We split out Bourne shell +# programs explicitly but it's not guaranteed that the Perl/Python/Ruby/etc. +# ones behave well on Mac or Windows just because we don't elide those too. + ########### install files ############### if (UNIX) #shell program