mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-09-03 10:53:39 +02:00
Added CMake check for AccountsQt
This commit is contained in:
27
CMakeModules/FindAccountsQt.cmake
Normal file
27
CMakeModules/FindAccountsQt.cmake
Normal file
@@ -0,0 +1,27 @@
|
||||
# - Try to find AccountsQt
|
||||
# Once done this will define
|
||||
# ACCOUNTSQT_FOUND - System has libaccounts-qt
|
||||
# ACCOUNTSQT_INCLUDE_DIRS - The libaccounts-qt include directories
|
||||
# ACCOUNTSQT_LIBRARIES - The libraries needed to use libaccounts-qt
|
||||
#
|
||||
# Copyright 2013 by Alejandro Fiestas Olivares <afiestas@kde.org>
|
||||
|
||||
find_package(PkgConfig)
|
||||
|
||||
find_path(ACCOUNTSQT_INCLUDE_DIR Accounts/Account
|
||||
HINTS ${ACCOUNTSQT_INCLUDEDIR} ${ACCOUNTSQT_INCLUDE_DIRS} ${CMAKE_INSTALL_PREFIX}/include
|
||||
PATH_SUFFIXES accounts-qt )
|
||||
|
||||
find_library(ACCOUNTSQT_LIBRARY NAMES accounts-qt libaccounts-qt
|
||||
HINTS ${ACCOUNTSQT_LIBDIR} ${ACCOUNTSQT_LIBRARY_DIRS} ${CMAKE_INSTALL_PREFIX}/lib64)
|
||||
|
||||
set(ACCOUNTSQT_LIBRARIES ${ACCOUNTSQT_LIBRARY} )
|
||||
set(ACCOUNTSQT_INCLUDE_DIRS ${ACCOUNTSQT_INCLUDE_DIR} )
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
# handle the QUIETLY and REQUIRED arguments and set ACCOUNTSQT_FOUND to TRUE
|
||||
# if all listed variables are TRUE
|
||||
find_package_handle_standard_args(libaccounts-qt DEFAULT_MSG
|
||||
ACCOUNTSQT_LIBRARY ACCOUNTSQT_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(ACCOUNTSQT_INCLUDE_DIR ACCOUNTSQT_LIBRARY )
|
Reference in New Issue
Block a user