2019-08-26 10:59:35 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
|
index 83edb3a..f634094 100644
|
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2020-02-03 18:21:47 +08:00
|
|
|
@@ -540,7 +540,11 @@ if(WEBP_BUILD_EXTRAS)
|
2019-08-26 10:59:35 +08:00
|
|
|
find_package(SDL)
|
|
|
|
if(SDL_FOUND)
|
|
|
|
add_executable(vwebp_sdl ${VWEBP_SDL_SRCS})
|
2020-01-15 07:26:58 +08:00
|
|
|
- target_link_libraries(vwebp_sdl ${SDL_LIBRARY} imageioutil webp)
|
2019-08-26 10:59:35 +08:00
|
|
|
+ target_link_libraries(vwebp_sdl ${SDL_LIBRARY} imageioutil webp)
|
|
|
|
+ if (MSVC)
|
|
|
|
+ target_link_libraries(vwebp_sdl dxguid winmm)
|
|
|
|
+ endif()
|
2020-02-03 18:21:47 +08:00
|
|
|
+ target_compile_definitions(vwebp_sdl PRIVATE WEBP_HAVE_JUST_SDL_H)
|
2019-08-26 10:59:35 +08:00
|
|
|
target_include_directories(vwebp_sdl
|
|
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
|
2022-04-14 02:26:56 +08:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|