CMakeLists.txt 690 B

123456789101112131415161718192021222324
  1. cmake_minimum_required(VERSION 3.10)
  2. project(wxGL_Test)
  3. add_executable(wxgltest WIN32 main.cpp )
  4. set (wxWidgets_CONFIG_OPTIONS "--toolkit=gtk${SLIC3R_GTK}")
  5. find_package(wxWidgets 3.1 REQUIRED COMPONENTS core base gl html)
  6. find_package(OpenGL REQUIRED)
  7. find_package(NanoSVG REQUIRED)
  8. include(${wxWidgets_USE_FILE})
  9. target_include_directories(wxgltest PRIVATE ${wxWidgets_INCLUDE_DIRS})
  10. target_compile_definitions(wxgltest PRIVATE ${wxWidgets_DEFINITIONS})
  11. target_compile_definitions(wxgltest PUBLIC -DwxDEBUG_LEVEL=0)
  12. target_link_libraries(wxgltest ${wxWidgets_LIBRARIES}
  13. OpenGL::GL
  14. OpenGL::EGL
  15. NanoSVG::nanosvgrast
  16. # png16
  17. # X11
  18. X11 wayland-client wayland-egl
  19. )