1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-18 06:48:23 +01:00

Jreen is named different for Qt5

This commit is contained in:
Uwe L. Korn 2014-05-06 14:11:31 +01:00
parent dfa649c6cd
commit 870f6d0b5c

View File

@ -6,7 +6,10 @@
# LIBJREEN_FOUND, whether libjreen was found
FIND_PACKAGE(PkgConfig QUIET)
PKG_CHECK_MODULES(PC_JREEN QUIET libjreen)
if( TOMAHAWK_QT5 )
set(JREEN_LIB_SUFFIX "-qt5")
endif()
PKG_CHECK_MODULES(PC_JREEN QUIET libjreen${JREEN_LIB_SUFFIX})
FIND_PATH(JREEN_INCLUDE_DIR NAMES jreen/jreen.h
HINTS
@ -16,7 +19,7 @@ FIND_PATH(JREEN_INCLUDE_DIR NAMES jreen/jreen.h
${KDE4_INCLUDE_DIR}
)
FIND_LIBRARY(JREEN_LIBRARIES NAMES jreen
FIND_LIBRARY(JREEN_LIBRARIES NAMES jreen${JREEN_LIB_SUFFIX}
HINTS
${PC_JREEN_LIBDIR}
${PC_JREEN_LIBRARY_DIRS}