wxWidgets.cmake 1.2 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/489f6118256853cf5b299d595868641938566cdb.zip
  14. URL_HASH SHA256=5b22d465377cedd8044bba69bea958b248953fd3628c1de4913a84d4e6f6175b
  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=$<$<CONFIG:Debug>:1>$<$<NOT:$<CONFIG:Debug>>: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 ()