wxWidgets.cmake 982 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. set(_wx_git_tag v3.1.4-patched)
  2. # set(_patch_command "")
  3. set(_wx_toolkit "")
  4. if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
  5. set(_gtk_ver 2)
  6. if (DEP_WX_GTK3)
  7. set(_gtk_ver 3)
  8. endif ()
  9. set(_wx_toolkit "-DwxBUILD_TOOLKIT=gtk${_gtk_ver}")
  10. endif()
  11. prusaslicer_add_cmake_project(wxWidgets
  12. GIT_REPOSITORY "https://github.com/prusa3d/wxWidgets"
  13. GIT_TAG ${_wx_git_tag}
  14. # PATCH_COMMAND "${_patch_command}"
  15. DEPENDS ${PNG_PKG} ${ZLIB_PKG} ${EXPAT_PKG}
  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=builtin
  30. -DwxUSE_LIBTIFF=builtin
  31. -DwxUSE_EXPAT=sys
  32. )
  33. if (MSVC)
  34. add_debug_dep(dep_wxWidgets)
  35. endif ()