From 60c92113499723ec2571965f6ecee02d3b035151 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 10 Mar 2006 22:48:09 +0000 Subject: First attempt to find aKode. aKode seems to be found correctly, the issue is to add the include path to the inclues of knotify. svn path=/trunk/KDE/kdelibs/; revision=517416 --- modules/FindAkode.cmake | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 modules/FindAkode.cmake (limited to 'modules/FindAkode.cmake') diff --git a/modules/FindAkode.cmake b/modules/FindAkode.cmake new file mode 100644 index 00000000..b0b90aa1 --- /dev/null +++ b/modules/FindAkode.cmake @@ -0,0 +1,31 @@ +# - Try to find the aKode library +# Once done this will define +# +# AKODE_FOUND - system has the aKode library +# AKODE_INCLUDE_DIR - the aKode include directory +# AKODE_LIBRARIES - The libraries needed to use aKode + +FIND_PROGRAM(AKODECONFIG_EXECUTABLE NAMES akode-config PATHS + /usr/bin + /usr/local/bin +) + +#reset vars +set(AKODE_LIBRARIES) +set(AKODE_INCLUDE_DIR) + +# if akode-config has been found +IF(AKODECONFIG_EXECUTABLE) + + EXEC_PROGRAM(${AKODECONFIG_EXECUTABLE} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE AKODE_LIBRARIES) + + EXEC_PROGRAM(${AKODECONFIG_EXECUTABLE} ARGS --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE AKODE_INCLUDE_DIR) + + IF(AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) + SET(AKODE_FOUND TRUE) + message(STATUS "Found aKode: ${AKODE_LIBRARIES}") + ENDIF(AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) + + MARK_AS_ADVANCED(AKODE_INCLUDE_DIR AKODE_LIBRARIES) + +ENDIF(AKODECONFIG_EXECUTABLE) -- cgit v1.2.1 From 3c049f4f6d977ef407c29cd8818504a48f325de6 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 13 Mar 2006 11:43:04 +0000 Subject: really make the akode detection work svn path=/trunk/KDE/kdelibs/; revision=518191 --- modules/FindAkode.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/FindAkode.cmake') diff --git a/modules/FindAkode.cmake b/modules/FindAkode.cmake index b0b90aa1..a90fdc0b 100644 --- a/modules/FindAkode.cmake +++ b/modules/FindAkode.cmake @@ -23,6 +23,7 @@ IF(AKODECONFIG_EXECUTABLE) IF(AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) SET(AKODE_FOUND TRUE) + STRING(REGEX REPLACE "-I(.+)" "\\1" AKODE_INCLUDE_DIR "${AKODE_INCLUDE_DIR}") message(STATUS "Found aKode: ${AKODE_LIBRARIES}") ENDIF(AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) -- cgit v1.2.1 From 191846e3e21c697c28bd5c8a166edeb4072161e3 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Mon, 20 Mar 2006 21:05:37 +0000 Subject: minor cleanups: indenting, adding newline to end of file, etc. svn path=/trunk/KDE/kdelibs/; revision=520790 --- modules/FindAkode.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/FindAkode.cmake') diff --git a/modules/FindAkode.cmake b/modules/FindAkode.cmake index a90fdc0b..47efe871 100644 --- a/modules/FindAkode.cmake +++ b/modules/FindAkode.cmake @@ -15,18 +15,18 @@ set(AKODE_LIBRARIES) set(AKODE_INCLUDE_DIR) # if akode-config has been found -IF(AKODECONFIG_EXECUTABLE) +IF (AKODECONFIG_EXECUTABLE) EXEC_PROGRAM(${AKODECONFIG_EXECUTABLE} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE AKODE_LIBRARIES) EXEC_PROGRAM(${AKODECONFIG_EXECUTABLE} ARGS --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE AKODE_INCLUDE_DIR) - IF(AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) + IF (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) SET(AKODE_FOUND TRUE) STRING(REGEX REPLACE "-I(.+)" "\\1" AKODE_INCLUDE_DIR "${AKODE_INCLUDE_DIR}") message(STATUS "Found aKode: ${AKODE_LIBRARIES}") - ENDIF(AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) + ENDIF (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) MARK_AS_ADVANCED(AKODE_INCLUDE_DIR AKODE_LIBRARIES) -ENDIF(AKODECONFIG_EXECUTABLE) +ENDIF (AKODECONFIG_EXECUTABLE) -- cgit v1.2.1 From 387a0c0abdf017075b0369d33a482634af492a04 Mon Sep 17 00:00:00 2001 From: David Faure Date: Wed, 12 Apr 2006 10:36:33 +0000 Subject: Actually use the cache so that every call to cmake doesn't call akode-config. The same needs to be done in many other checks... svn path=/trunk/KDE/kdelibs/; revision=528992 --- modules/FindAkode.cmake | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) (limited to 'modules/FindAkode.cmake') diff --git a/modules/FindAkode.cmake b/modules/FindAkode.cmake index 47efe871..5c1bab29 100644 --- a/modules/FindAkode.cmake +++ b/modules/FindAkode.cmake @@ -5,28 +5,35 @@ # AKODE_INCLUDE_DIR - the aKode include directory # AKODE_LIBRARIES - The libraries needed to use aKode -FIND_PROGRAM(AKODECONFIG_EXECUTABLE NAMES akode-config PATHS - /usr/bin - /usr/local/bin -) +IF (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) -#reset vars -set(AKODE_LIBRARIES) -set(AKODE_INCLUDE_DIR) + # in cache already + SET(AKODE_FOUND TRUE) -# if akode-config has been found -IF (AKODECONFIG_EXECUTABLE) +ELSE (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) - EXEC_PROGRAM(${AKODECONFIG_EXECUTABLE} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE AKODE_LIBRARIES) + FIND_PROGRAM(AKODECONFIG_EXECUTABLE NAMES akode-config PATHS + /usr/bin + /usr/local/bin + ) - EXEC_PROGRAM(${AKODECONFIG_EXECUTABLE} ARGS --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE AKODE_INCLUDE_DIR) + # if akode-config has been found + IF (AKODECONFIG_EXECUTABLE) - IF (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) - SET(AKODE_FOUND TRUE) - STRING(REGEX REPLACE "-I(.+)" "\\1" AKODE_INCLUDE_DIR "${AKODE_INCLUDE_DIR}") - message(STATUS "Found aKode: ${AKODE_LIBRARIES}") - ENDIF (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) + EXEC_PROGRAM(${AKODECONFIG_EXECUTABLE} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE AKODE_LIBRARIES) - MARK_AS_ADVANCED(AKODE_INCLUDE_DIR AKODE_LIBRARIES) + EXEC_PROGRAM(${AKODECONFIG_EXECUTABLE} ARGS --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE AKODE_INCLUDE_DIR) -ENDIF (AKODECONFIG_EXECUTABLE) + IF (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) + SET(AKODE_FOUND TRUE) + STRING(REGEX REPLACE "-I(.+)" "\\1" AKODE_INCLUDE_DIR "${AKODE_INCLUDE_DIR}") + message(STATUS "Found aKode: ${AKODE_LIBRARIES}") + ENDIF (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) + + # ensure that they are cached + set(AKODE_INCLUDE_DIR ${AKODE_INCLUDE_DIR} CACHE INTERNAL "The akode include path") + set(AKODE_LIBRARIES ${AKODE_LIBRARIES} CACHE INTERNAL "The libraries needed to use libraries") + + ENDIF (AKODECONFIG_EXECUTABLE) + +ENDIF (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) -- cgit v1.2.1 From c778596920e0d5357f216c885e35b4f97d371a23 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sat, 9 Sep 2006 10:18:35 +0000 Subject: added copyright notice everywhere. Now they all are BSD-licensed, as copyright holder I inserted everywhere the one who added it to svn (or Kitware if it is an enhanced copy from taken cmake) Some developers committed quite often but were not the ones who added the file, if you feel you have also copyright on the file add your name in the specific file. Copyright holders: CCMAIL: montel@kde.org CCMAIL: toscano.pino@tiscali.it CCMAIL: adymo@kdevelop.org CCMAIL: ranger@befunk.com CCMAIL: zack@kde.org CCMAIL: caslav.ilic@gmx.net CCMAIL: syntheticpp@yahoo.com CCMAIL: js@iidea.pl CCMAIL: michael.larouche@kdemail.net CCMAIL: ossi@kde.org CCMAIL: faure@kde.org Committers, but no files added so that they are not listed as copyright holders: CCMAIL: ch.ehrlicher@gmx.de CCMAIL: winter@kde.org CCMAIL: ralf.habacker@freenet.de CCMAIL: moura@kdewebdev.org CCMAIL: kde-buildsystem@kde.org Alex svn path=/trunk/KDE/kdelibs/; revision=582410 --- modules/FindAkode.cmake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/FindAkode.cmake') diff --git a/modules/FindAkode.cmake b/modules/FindAkode.cmake index 5c1bab29..64511f3f 100644 --- a/modules/FindAkode.cmake +++ b/modules/FindAkode.cmake @@ -4,6 +4,12 @@ # AKODE_FOUND - system has the aKode library # AKODE_INCLUDE_DIR - the aKode include directory # AKODE_LIBRARIES - The libraries needed to use aKode +# +# Copyright (c) 2006, Pino Toscano, +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + IF (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) -- cgit v1.2.1 From afb32034d54547a6b8bb023c5ae338428f525d0c Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Thu, 5 Apr 2007 09:55:56 +0000 Subject: Fix it when akode is required svn path=/trunk/KDE/kdelibs/; revision=650718 --- modules/FindAkode.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/FindAkode.cmake') diff --git a/modules/FindAkode.cmake b/modules/FindAkode.cmake index 64511f3f..156bf958 100644 --- a/modules/FindAkode.cmake +++ b/modules/FindAkode.cmake @@ -41,5 +41,15 @@ ELSE (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) set(AKODE_LIBRARIES ${AKODE_LIBRARIES} CACHE INTERNAL "The libraries needed to use libraries") ENDIF (AKODECONFIG_EXECUTABLE) + IF(AKODE_FOUND) + IF(NOT Akode_FIND_QUIETLY) + MESSAGE(STATUS "Akode found: ${AKODE_LIBRARIES}") + ENDIF(NOT Akode_FIND_QUIETLY) + ELSE(AKODE_FOUND) + IF(Akode_FIND_REQUIRED) + MESSAGE(FATAL_ERROR "Could not find Akode") + ENDIF(Akode_FIND_REQUIRED) + ENDIF(AKODE_FOUND) ENDIF (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) + -- cgit v1.2.1 From 7414281e067da7260f800381af7b58844394bb1a Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Thu, 9 Aug 2007 19:36:35 +0000 Subject: Use FIND_PACKAGE_HANDLE_STANDARD_ARGS svn path=/trunk/KDE/kdelibs/; revision=698299 --- modules/FindAkode.cmake | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'modules/FindAkode.cmake') diff --git a/modules/FindAkode.cmake b/modules/FindAkode.cmake index 156bf958..72061d37 100644 --- a/modules/FindAkode.cmake +++ b/modules/FindAkode.cmake @@ -18,10 +18,7 @@ IF (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) ELSE (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) - FIND_PROGRAM(AKODECONFIG_EXECUTABLE NAMES akode-config PATHS - /usr/bin - /usr/local/bin - ) + FIND_PROGRAM(AKODECONFIG_EXECUTABLE NAMES akode-config) # if akode-config has been found IF (AKODECONFIG_EXECUTABLE) -- cgit v1.2.1 From 814455b7ad321c88e730662fda58261087b72e72 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 18 Feb 2008 19:06:32 +0000 Subject: some improvements to the docs: -some modules were not at all documented, only few are left now -the copyright message doesn't have to be printed for every module in the docs -fix FindKorundom.cmake, it didn't follow the style guide and had typos (e.g. Korumdum_FOUND instead of KORUNDUM_FOUND) Alex (will commit modified FindKDE4Internal.cmake after Christians commit) svn path=/trunk/KDE/kdelibs/; revision=776742 --- modules/FindAkode.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/FindAkode.cmake') diff --git a/modules/FindAkode.cmake b/modules/FindAkode.cmake index 72061d37..9e66eb36 100644 --- a/modules/FindAkode.cmake +++ b/modules/FindAkode.cmake @@ -4,7 +4,7 @@ # AKODE_FOUND - system has the aKode library # AKODE_INCLUDE_DIR - the aKode include directory # AKODE_LIBRARIES - The libraries needed to use aKode -# + # Copyright (c) 2006, Pino Toscano, # # Redistribution and use is allowed according to the terms of the BSD license. -- cgit v1.2.1 From 9215cdab458b5fdc16343157dacd78ef82245ae1 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Wed, 16 Apr 2008 20:37:25 +0000 Subject: don't put set variables into the CACHE, per Brad King svn path=/trunk/KDE/kdelibs/; revision=797757 --- modules/FindAkode.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/FindAkode.cmake') diff --git a/modules/FindAkode.cmake b/modules/FindAkode.cmake index 9e66eb36..9df503cc 100644 --- a/modules/FindAkode.cmake +++ b/modules/FindAkode.cmake @@ -34,8 +34,8 @@ ELSE (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) ENDIF (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) # ensure that they are cached - set(AKODE_INCLUDE_DIR ${AKODE_INCLUDE_DIR} CACHE INTERNAL "The akode include path") - set(AKODE_LIBRARIES ${AKODE_LIBRARIES} CACHE INTERNAL "The libraries needed to use libraries") + set(AKODE_INCLUDE_DIR ${AKODE_INCLUDE_DIR}) + set(AKODE_LIBRARIES ${AKODE_LIBRARIES}) ENDIF (AKODECONFIG_EXECUTABLE) IF(AKODE_FOUND) -- cgit v1.2.1