1
0
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:
David Sansome 2010-06-07 11:37:37 +00:00
parent 2fa612b157
commit 48521823e3
3 changed files with 14 additions and 7 deletions

View File

@ -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

View File

@ -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})

View File

@ -10,7 +10,10 @@
//
//
#include <dlfcn.h>
extern "C" {
# include <dlfcn.h>
}
#include "NativePresetFactory.hpp"
typedef void Handle;