mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-22 15:58:45 +01:00
Explicitly link libprojectm renderer to GLEW
This commit is contained in:
parent
7599b5771f
commit
d71651db7e
2
3rdparty/libprojectm/CMakeLists.txt
vendored
2
3rdparty/libprojectm/CMakeLists.txt
vendored
@ -26,6 +26,8 @@ set(DISABLE_MILKDROP_PRESETS OFF)
|
|||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++98")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++98")
|
||||||
|
|
||||||
|
pkg_check_modules(GLEW glew)
|
||||||
|
|
||||||
if(DISABLE_NATIVE_PRESETS)
|
if(DISABLE_NATIVE_PRESETS)
|
||||||
ADD_DEFINITIONS(-DDISABLE_NATIVE_PRESETS)
|
ADD_DEFINITIONS(-DDISABLE_NATIVE_PRESETS)
|
||||||
endif(DISABLE_NATIVE_PRESETS)
|
endif(DISABLE_NATIVE_PRESETS)
|
||||||
|
2
3rdparty/libprojectm/Renderer/CMakeLists.txt
vendored
2
3rdparty/libprojectm/Renderer/CMakeLists.txt
vendored
@ -22,6 +22,6 @@ FIND_PACKAGE(X11)
|
|||||||
INCLUDE_DIRECTORIES(${projectM_SOURCE_DIR} ${X11_INCLUDE_DIR})
|
INCLUDE_DIRECTORIES(${projectM_SOURCE_DIR} ${X11_INCLUDE_DIR})
|
||||||
ADD_LIBRARY(Renderer STATIC ${Renderer_SOURCES})
|
ADD_LIBRARY(Renderer STATIC ${Renderer_SOURCES})
|
||||||
SET_TARGET_PROPERTIES(Renderer PROPERTIES VERSION 2.00 SOVERSION 2)
|
SET_TARGET_PROPERTIES(Renderer PROPERTIES VERSION 2.00 SOVERSION 2)
|
||||||
TARGET_LINK_LIBRARIES(Renderer ${MATH_LIBRARIES} projectM)
|
TARGET_LINK_LIBRARIES(Renderer ${MATH_LIBRARIES} ${GLEW_LIBRARIES} projectM)
|
||||||
|
|
||||||
set_target_properties(Renderer PROPERTIES COMPILE_FLAGS "-Wno-parentheses")
|
set_target_properties(Renderer PROPERTIES COMPILE_FLAGS "-Wno-parentheses")
|
||||||
|
Loading…
Reference in New Issue
Block a user