try to auto-detect static glew (less dll dependencies)

This commit is contained in:
learn_more 2013-10-08 23:56:03 +02:00
parent 8207411c38
commit 34d1f4b69d

View File

@ -45,6 +45,10 @@ if(WIN32)
endif() endif()
endforeach() endforeach()
add_definitions(-DCURL_STATICLIB) add_definitions(-DCURL_STATICLIB)
get_filename_component(GLEWLIBFILE ${GLEW_LIBRARY} NAME_WE)
if("glew32s" STREQUAL ${GLEWLIBFILE})
add_definitions(-DGLEW_STATIC) #static linked
endif()
endif() endif()
source_group("Audio" FILES ${AUDIO_FILES}) source_group("Audio" FILES ${AUDIO_FILES})