1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Add static linking with libpulse

This commit is contained in:
Mathieu Schroeter 2017-09-09 00:31:21 +02:00
parent 4cbdc3aea5
commit 7cb9c23e3e

View File

@ -114,6 +114,7 @@ pkg_search_module (SWRESAMPLE REQUIRED libswresample)
if (UNIX AND NOT APPLE)
pkg_search_module (ALSA REQUIRED alsa)
pkg_search_module (PULSE REQUIRED libpulse)
endif ()
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DCURL_STATICLIB")
@ -148,7 +149,11 @@ set (planetblupi_DEPS
)
if (UNIX AND NOT APPLE)
list (APPEND planetblupi_DEPS ${ALSA_STATIC_LIBRARIES})
list (APPEND planetblupi_DEPS
${ALSA_STATIC_LIBRARIES}
${PULSE_STATIC_LIBRARIES}
)
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${CMAKE_INSTALL_PREFIX}/lib/pulseaudio")
endif ()
target_link_libraries (planetblupi PUBLIC ${planetblupi_DEPS})