CMakeLists.txt 1.0 KB

123456789101112131415161718192021222324252627282930
  1. cmake_minimum_required(VERSION 3.0)
  2. project(OpenCSG-example)
  3. add_executable(opencsg_example WIN32
  4. main.cpp
  5. Engine.hpp Engine.cpp
  6. ShaderCSGDisplay.hpp ShaderCSGDisplay.cpp
  7. ${CMAKE_CURRENT_SOURCE_DIR}/../../src/slic3r/GUI/Jobs/Job.cpp
  8. ${CMAKE_CURRENT_SOURCE_DIR}/../../src/slic3r/GUI/ProgressStatusBar.cpp
  9. ${CMAKE_CURRENT_SOURCE_DIR}/../../src/slic3r/GUI/I18N.hpp
  10. ${CMAKE_CURRENT_SOURCE_DIR}/../../src/slic3r/GUI/I18N.cpp)
  11. find_package(wxWidgets 3.1 REQUIRED COMPONENTS core base gl html)
  12. find_package(OpenGL REQUIRED)
  13. find_package(GLEW REQUIRED)
  14. find_package(OpenCSG REQUIRED)
  15. include(${wxWidgets_USE_FILE})
  16. target_link_libraries(opencsg_example libslic3r)
  17. target_include_directories(opencsg_example PRIVATE ${wxWidgets_INCLUDE_DIRS})
  18. target_compile_definitions(opencsg_example PRIVATE ${wxWidgets_DEFINITIONS})
  19. slic3r_remap_configs(OpenCSG::opencsg RelWithDebInfo Release)
  20. target_link_libraries(opencsg_example ${wxWidgets_LIBRARIES}
  21. OpenCSG::opencsg
  22. GLEW::GLEW
  23. OpenGL::GL
  24. #-lXrandr -lXext -lX11
  25. )