diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-12-11 13:31:13 +0100 |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-12-11 13:31:13 +0100 |
commit | 69c0c16af749650d58e4f7b2cd24d672147b533b (patch) | |
tree | 68538d2d134c55490fb352dd936a29b5e3e2fcda /modules | |
parent | e822807ee6f5390f1cca0662b1da48b64699611a (diff) | |
download | extra-cmake-modules-69c0c16af749650d58e4f7b2cd24d672147b533b.tar.gz extra-cmake-modules-69c0c16af749650d58e4f7b2cd24d672147b533b.tar.bz2 |
-separate find-modules and other modules into two separate directories, so they can be handled differently (the macros can't clash with stuff from cmake, since they all have the ECM prefix)
Alex
Diffstat (limited to 'modules')
-rw-r--r-- | modules/FindBlueZ.cmake | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/modules/FindBlueZ.cmake b/modules/FindBlueZ.cmake deleted file mode 100644 index 04e636f6..00000000 --- a/modules/FindBlueZ.cmake +++ /dev/null @@ -1,44 +0,0 @@ -# - Try to find BlueZ bluetooth library. -# Once done this will define -# -# BLUEZ_FOUND - system has BlueZ -# BLUEZ_INCLUDE_DIR - the BlueZ include directory -# BLUEZ_LIBRARIES - Link these to use BlueZ -# BLUEZ_DEFINITIONS - Compiler switches required for using BlueZ -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. -# - -# Copyright (c) 2008, Daniel Gollub, <dgollub@suse.de> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -# use pkg-config to get the directories and then use these values -# in the FIND_PATH() and FIND_LIBRARY() calls -find_package(PkgConfig) -pkg_check_modules(PC_BLUEZ QUIET bluez) - -set(BLUEZ_DEFINITIONS ${PC_BLUEZ_CFLAGS_OTHER}) - -find_path(BLUEZ_INCLUDE_DIR NAMES bluetooth/bluetooth.h - PATHS - ${PC_BLUEZ_INCLUDEDIR} - ${PC_BLUEZ_INCLUDE_DIRS} - /usr/X11/include -) - -find_library(BLUEZ_LIBRARY NAMES bluetooth - PATHS - ${PC_BLUEZ_LIBDIR} - ${PC_BLUEZ_LIBRARY_DIRS} -) - -set(BLUEZ_LIBRARIES ${BLUEZ_LIBRARY}) - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(BlueZ DEFAULT_MSG BLUEZ_LIBRARY BLUEZ_INCLUDE_DIR) - -# show the BLUEZ_INCLUDE_DIR and BLUEZ_LIBRARY variables only in the advanced view -mark_as_advanced(BLUEZ_INCLUDE_DIR BLUEZ_LIBRARY) |