wxWidgets.cmake 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. set(_wx_git_tag v3.1.4-patched)
  2. set(_wx_toolkit "")
  3. if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
  4. set(_gtk_ver 2)
  5. if (DEP_WX_GTK3)
  6. set(_gtk_ver 3)
  7. endif ()
  8. set(_wx_toolkit "-DwxBUILD_TOOLKIT=gtk${_gtk_ver}")
  9. endif()
  10. prusaslicer_add_cmake_project(wxWidgets
  11. # GIT_REPOSITORY "https://github.com/prusa3d/wxWidgets"
  12. # GIT_TAG tm_cross_compile #${_wx_git_tag}
  13. URL https://github.com/prusa3d/wxWidgets/archive/refs/heads/v3.1.4-patched.zip
  14. URL_HASH SHA256=a1e145a083d173cf320c0bd8522c7ee5829052b49b68fe5268ac84f0c576b940
  15. DEPENDS ${PNG_PKG} ${ZLIB_PKG} ${EXPAT_PKG} dep_TIFF dep_JPEG
  16. CMAKE_ARGS
  17. -DwxBUILD_PRECOMP=ON
  18. ${_wx_toolkit}
  19. "-DCMAKE_DEBUG_POSTFIX:STRING="
  20. -DwxBUILD_DEBUG_LEVEL=0
  21. -DwxUSE_MEDIACTRL=OFF
  22. -DwxUSE_DETECT_SM=OFF
  23. -DwxUSE_UNICODE=ON
  24. -DwxUSE_OPENGL=ON
  25. -DwxUSE_LIBPNG=sys
  26. -DwxUSE_ZLIB=sys
  27. -DwxUSE_REGEX=builtin
  28. -DwxUSE_LIBXPM=builtin
  29. -DwxUSE_LIBJPEG=sys
  30. -DwxUSE_LIBTIFF=sys
  31. -DwxUSE_EXPAT=sys
  32. -DwxUSE_LIBSDL=OFF
  33. -DwxUSE_XTEST=OFF
  34. )
  35. if (MSVC)
  36. add_debug_dep(dep_wxWidgets)
  37. endif ()