Signed-off-by: gregory guy <gregory-tde@laposte.net>
(cherry picked from commit e05372302d
)
pull/38/head
parent
7a03f51062
commit
e0df97d9b1
@ -1,22 +1,42 @@
|
||||
#################################################
|
||||
#
|
||||
# (C) 2012 Slavek Banko
|
||||
# slavek (DOT) banko (AT) axis.cz
|
||||
#
|
||||
# Improvements and feedback are welcome
|
||||
#
|
||||
# This file is released under GPL >= 2
|
||||
#
|
||||
#################################################
|
||||
###########################################
|
||||
# #
|
||||
# (C) 2012 Slavek Banko #
|
||||
# slavek (DOT) banko (AT) axis.cz #
|
||||
# #
|
||||
# Improvements and feedback are welcome #
|
||||
# #
|
||||
# This file is released under GPL >= 2 #
|
||||
# #
|
||||
###########################################
|
||||
|
||||
##### xmms
|
||||
|
||||
# xmms
|
||||
if( WITH_XMMS )
|
||||
find_program( XMMS_CONFIG xmms-config )
|
||||
if( XMMS_CONFIG )
|
||||
find_program( XMMS_CONFIG xmms-config )
|
||||
|
||||
if( NOT XMMS_CONFIG )
|
||||
tde_message_fatal( "xmms support has been requested but was not found on your system" )
|
||||
else()
|
||||
execute_process(
|
||||
COMMAND ${XMMS_CONFIG} --cflags
|
||||
OUTPUT_VARIABLE XMMS_INCLUDES
|
||||
ERROR_VARIABLE XMMS_INCLUDES
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
ERROR_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
string( REGEX MATCHALL "-I([^ ]*)" XMMS_INCLUDES "${XMMS_INCLUDES}" )
|
||||
string( REGEX REPLACE "-I" "" XMMS_INCLUDES "${XMMS_INCLUDES}" )
|
||||
set( XMMS_INCLUDE_DIRS "${XMMS_INCLUDES}" CACHE INTERNAL "" )
|
||||
|
||||
execute_process(
|
||||
COMMAND ${XMMS_CONFIG} --libs
|
||||
OUTPUT_VARIABLE XMMS_LIBS
|
||||
ERROR_VARIABLE XMMS_LIBS
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
ERROR_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
set( XMMS_LIBRARIES "${XMMS_LIBS}" CACHE INTERNAL "" )
|
||||
|
||||
set( HAVE_XMMS 1 CACHE INTERNAL "" )
|
||||
EXECUTE_PROCESS( COMMAND ${XMMS_CONFIG} '--cflags' OUTPUT_VARIABLE XMMS_INCLUDES )
|
||||
EXECUTE_PROCESS( COMMAND ${XMMS_CONFIG} '--libs' OUTPUT_VARIABLE XMMS_LIBS )
|
||||
else( )
|
||||
tde_message_fatal( "xmms is required, but was not found on your system" )
|
||||
endif( )
|
||||
endif( )
|
||||
endif()
|
||||
endif( WITH_XMMS )
|
||||
|
Loading…
Reference in new issue