mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-29 10:39:47 +01:00
Make the 3rdparty libprojectm build properly with FTGL switched on
This commit is contained in:
parent
94b1edde2f
commit
11e18bb22f
16
3rdparty/libprojectm/CMakeLists.txt
vendored
16
3rdparty/libprojectm/CMakeLists.txt
vendored
@ -79,11 +79,11 @@ ADD_DEFINITIONS(-DUSE_FBO)
|
|||||||
endif(USE_FBO)
|
endif(USE_FBO)
|
||||||
|
|
||||||
if(USE_FTGL)
|
if(USE_FTGL)
|
||||||
ADD_DEFINITIONS(-DUSE_FTGL)
|
ADD_DEFINITIONS(-DUSE_FTGL)
|
||||||
|
|
||||||
find_package( Freetype2 REQUIRED)
|
|
||||||
include_directories( ${FREETYPE2_INCLUDE_DIR} )
|
|
||||||
|
|
||||||
|
pkg_check_modules(FREETYPE2 freetype2)
|
||||||
|
pkg_check_modules(FTGL ftgl)
|
||||||
|
include_directories( ${FREETYPE2_INCLUDE_DIRS} )
|
||||||
endif(USE_FTGL)
|
endif(USE_FTGL)
|
||||||
|
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ IF(USE_OPENMP AND SUPPORTS_OPENMP)
|
|||||||
ENDIF(USE_OPENMP AND SUPPORTS_OPENMP)
|
ENDIF(USE_OPENMP AND SUPPORTS_OPENMP)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${projectM_SOURCE_DIR} ${FTGL_INCLUDE_DIRS} ${Renderer_SOURCE_DIR} ${PRESET_FACTORY_SOURCES})
|
INCLUDE_DIRECTORIES(${projectM_SOURCE_DIR} ${FTGL_INCLUDE_DIRS} ${Renderer_SOURCE_DIR} ${PRESET_FACTORY_SOURCES})
|
||||||
LINK_DIRECTORIES(${FTGL_LINK_DIRS} ${Renderer_BINARY_DIR} ${PRESET_FACTORY_BINARY_DIR})
|
LINK_DIRECTORIES(${FTGL_LIBRARY_DIRS} ${Renderer_BINARY_DIR} ${PRESET_FACTORY_BINARY_DIR})
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
SET (MATH_LIBRARIES )
|
SET (MATH_LIBRARIES )
|
||||||
@ -143,11 +143,9 @@ else(MSVC)
|
|||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
if(BUILD_PROJECTM_STATIC)
|
if(BUILD_PROJECTM_STATIC)
|
||||||
TARGET_LINK_LIBRARIES(projectM ${GLEW_LIBRARIES} ${MATH_LIBRARIES} ${FTGL_LINK_TARGETS} ${OPENGL_LIBRARIES} ${IMAGE_LINK_TARGETS} ${CG_LINK_TARGETS} ${PRESET_FACTORY_LINK_TARGETS})
|
TARGET_LINK_LIBRARIES(projectM ${GLEW_LIBRARIES} ${MATH_LIBRARIES} ${FTGL_LIBRARIES} ${OPENGL_LIBRARIES} ${IMAGE_LINK_TARGETS} ${CG_LINK_TARGETS} ${PRESET_FACTORY_LINK_TARGETS})
|
||||||
else(BUILD_PROJECTM_STATIC)
|
else(BUILD_PROJECTM_STATIC)
|
||||||
|
TARGET_LINK_LIBRARIES(projectM ${GLEW_LIBRARIES} ${MATH_LIBRARIES} ${FTGL_LIBRARIES} ${OPENGL_LIBRARIES} ${IMAGE_LINK_TARGETS} ${CG_LINK_TARGETS} ${PRESET_FACTORY_LINK_TARGETS})
|
||||||
TARGET_LINK_LIBRARIES(projectM ${GLEW_LIBRARIES} ${MATH_LIBRARIES} ${FTGL_LINK_TARGETS} ${OPENGL_LIBRARIES} ${IMAGE_LINK_TARGETS} ${CG_LINK_TARGETS} ${PRESET_FACTORY_LINK_TARGETS})
|
|
||||||
|
|
||||||
endif(BUILD_PROJECTM_STATIC)
|
endif(BUILD_PROJECTM_STATIC)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user