You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.4 KiB

  1. --- a/CMakeLists.txt
  2. +++ b/CMakeLists.txt
  3. @@ -471,19 +471,18 @@ endif()
  4. if(WEBP_BUILD_LIBWEBPMUX)
  5. parse_makefile_am(${CMAKE_CURRENT_SOURCE_DIR}/src/mux "WEBP_MUX_SRCS" "")
  6. - add_library(libwebpmux ${WEBP_MUX_SRCS})
  7. - target_link_libraries(libwebpmux webp)
  8. - target_include_directories(libwebpmux
  9. + add_library(webpmux ${WEBP_MUX_SRCS})
  10. + target_link_libraries(webpmux webp)
  11. + target_include_directories(webpmux
  12. PRIVATE ${CMAKE_CURRENT_BINARY_DIR}
  13. ${CMAKE_CURRENT_SOURCE_DIR})
  14. - set_version(mux/Makefile.am libwebpmux webpmux)
  15. - set_target_properties(libwebpmux
  16. + set_version(mux/Makefile.am webpmux webpmux)
  17. + set_target_properties(webpmux
  18. PROPERTIES PUBLIC_HEADER
  19. "${CMAKE_CURRENT_SOURCE_DIR}/src/webp/mux.h;\
  20. ${CMAKE_CURRENT_SOURCE_DIR}/src/webp/mux_types.h;\
  21. ${CMAKE_CURRENT_SOURCE_DIR}/src/webp/types.h;")
  22. - set_target_properties(libwebpmux PROPERTIES OUTPUT_NAME webpmux)
  23. - list(APPEND INSTALLED_LIBRARIES libwebpmux)
  24. + list(APPEND INSTALLED_LIBRARIES webpmux)
  25. configure_pkg_config("src/mux/libwebpmux.pc")
  26. endif()
  27. @@ -497,7 +496,7 @@ if(WEBP_BUILD_GIF2WEBP)
  28. exampleutil
  29. imageioutil
  30. webp
  31. - libwebpmux
  32. + webpmux
  33. ${WEBP_DEP_GIF_LIBRARIES})
  34. target_include_directories(gif2webp PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/src)
  35. install(TARGETS gif2webp RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
  36. @@ -514,7 +513,7 @@ if(WEBP_BUILD_IMG2WEBP)
  37. imagedec
  38. imageioutil
  39. webp
  40. - libwebpmux)
  41. + webpmux)
  42. target_include_directories(img2webp PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/src)
  43. install(TARGETS img2webp RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
  44. endif()
  45. @@ -563,7 +562,7 @@ if(WEBP_BUILD_WEBPMUX)
  46. parse_makefile_am(${CMAKE_CURRENT_SOURCE_DIR}/examples "WEBPMUX_SRCS"
  47. "webpmux")
  48. add_executable(webpmux ${WEBPMUX_SRCS})
  49. - target_link_libraries(webpmux exampleutil imageioutil libwebpmux webp)
  50. + target_link_libraries(webpmux exampleutil imageioutil webpmux webp)
  51. target_include_directories(webpmux PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/src)
  52. install(TARGETS webpmux RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
  53. endif()