Warning, /frameworks/kdelibs4support/cmake/modules/FindXmms.cmake is written in an unsupported language. File is not indexed.
0001 # Search xmms 0002 # Once done this will define 0003 # 0004 # XMMS_FOUND - system has xmms 0005 # XMMS_INCLUDE_DIRS - the xmms include directory 0006 # XMMS_LIBRARIES - Link these to use xmms 0007 # XMMS_LDFLAGS - for compatibility only, same as XMMS_LIBRARIES 0008 0009 # Copyright (c) 2006, 2007 Laurent Montel, <montel@kde.org> 0010 # Copyright (c) 2007 Allen Winter <winter@kde.org> 0011 # 0012 # Redistribution and use is allowed according to the terms of the BSD license. 0013 # For details see the accompanying COPYING-CMAKE-SCRIPTS file. 0014 0015 if (XMMS_INCLUDE_DIRS AND XMMS_LIBRARIES) 0016 # in cache already 0017 set(XMMS_FOUND TRUE) 0018 0019 else (XMMS_INCLUDE_DIRS AND XMMS_LIBRARIES) 0020 if (NOT WIN32) 0021 # use pkg-config to get the directories and then use these values 0022 # in the FIND_PATH() and FIND_LIBRARY() calls 0023 find_package(PkgConfig) 0024 0025 pkg_check_modules(PC_XMMS QUIET xmms) 0026 endif(NOT WIN32) 0027 0028 find_path(XMMS_INCLUDE_DIRS xmmsctrl.h 0029 PATHS ${PC_XMMS_INCLUDEDIR} ${PC_XMMS_INCLUDE_DIRS} 0030 PATH_SUFFIXES xmms) 0031 0032 find_library(XMMS_LIBRARIES NAMES xmms 0033 PATHS ${PC_XMMS_LIBDIR} ${PC_XMMS_LIBRARY_DIRS}) 0034 0035 include(FindPackageHandleStandardArgs) 0036 find_package_handle_standard_args(Xmms DEFAULT_MSG 0037 XMMS_LIBRARIES XMMS_INCLUDE_DIRS) 0038 0039 mark_as_advanced(XMMS_INCLUDE_DIRS XMMS_LIBRARIES) 0040 0041 endif (XMMS_INCLUDE_DIRS AND XMMS_LIBRARIES) 0042 0043 # for compatibility 0044 set(XMMS_LDFLAGS ${XMMS_LIBRARIES})