From d2b2c90a06bf1f4a21df196430d1f95856900410 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Thu, 30 Jun 2011 17:36:45 -0400 Subject: Move the modules, modules-test and systeminfo subdirs into 'attic' --- attic/modules/FindAkode.cmake | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 attic/modules/FindAkode.cmake (limited to 'attic/modules/FindAkode.cmake') diff --git a/attic/modules/FindAkode.cmake b/attic/modules/FindAkode.cmake new file mode 100644 index 00000000..9df503cc --- /dev/null +++ b/attic/modules/FindAkode.cmake @@ -0,0 +1,52 @@ +# - 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 + +# 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) + + # in cache already + SET(AKODE_FOUND TRUE) + +ELSE (AKODE_LIBRARIES AND AKODE_INCLUDE_DIR) + + FIND_PROGRAM(AKODECONFIG_EXECUTABLE NAMES akode-config) + + # 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) + 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}) + set(AKODE_LIBRARIES ${AKODE_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