mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 12:28:31 +01:00
Link to glew and dlfcn properly on windows
This commit is contained in:
parent
2fa612b157
commit
48521823e3
10
3rdparty/libprojectm/CMakeLists.txt
vendored
10
3rdparty/libprojectm/CMakeLists.txt
vendored
@ -31,12 +31,12 @@ OPTION (DISABLE_MILKDROP_PRESETS "Turn off support for Milkdrop (.milk / .prjm)
|
||||
ADD_DEFINITIONS(-DCMAKE_INSTALL_PREFIX="\\\"${CMAKE_INSTALL_PREFIX}\\\"")
|
||||
|
||||
if (USE_NATIVE_GLEW)
|
||||
ADD_DEFINITIONS(-DUSE_NATIVE_GLEW)
|
||||
SET(GLEW_SOURCES glew.h glew.c)
|
||||
SET(GLEW_LINK_TARGETS )
|
||||
ADD_DEFINITIONS(-DUSE_NATIVE_GLEW)
|
||||
SET(GLEW_SOURCES glew.h glew.c)
|
||||
SET(GLEW_LINK_TARGETS )
|
||||
else(USE_NATIVE_GLEW)
|
||||
SET(GLEW_SOURCES )
|
||||
SET (GLEW_LINK_TARGETS GLEW)
|
||||
SET(GLEW_SOURCES )
|
||||
find_library(GLEW_LINK_TARGETS NAMES glew GLEW glew32)
|
||||
endif(USE_NATIVE_GLEW)
|
||||
|
||||
SET(projectM_SOURCES projectM.cpp PCM.cpp Preset.cpp fftsg.cpp KeyHandler.cpp
|
||||
|
@ -7,6 +7,10 @@ cmake_minimum_required(VERSION 2.4.0)
|
||||
|
||||
SET(NativePresetFactory_SOURCES NativePresetFactory.cpp)
|
||||
|
||||
if(WIN32)
|
||||
find_library(DL_LIBRARIES dl)
|
||||
endif(WIN32)
|
||||
|
||||
if(MSVC)
|
||||
SET (MATH_LIBRARIES )
|
||||
else(MSVC)
|
||||
@ -16,4 +20,4 @@ endif(MSVC)
|
||||
INCLUDE_DIRECTORIES(${projectM_SOURCE_DIR} ${Renderer_SOURCE_DIR})
|
||||
ADD_LIBRARY(NativePresetFactory STATIC ${NativePresetFactory_SOURCES})
|
||||
SET_TARGET_PROPERTIES(NativePresetFactory PROPERTIES VERSION 2.00 SOVERSION 2)
|
||||
TARGET_LINK_LIBRARIES(NativePresetFactory Renderer ${MATH_LIBRARIES})
|
||||
TARGET_LINK_LIBRARIES(NativePresetFactory Renderer ${MATH_LIBRARIES} ${DL_LIBRARIES})
|
||||
|
@ -10,7 +10,10 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include <dlfcn.h>
|
||||
extern "C" {
|
||||
# include <dlfcn.h>
|
||||
}
|
||||
|
||||
#include "NativePresetFactory.hpp"
|
||||
|
||||
typedef void Handle;
|
||||
|
Loading…
Reference in New Issue
Block a user