PrusaSlicer-NonPlainar/sandboxes/opencsg/CMakeLists.txt

26 lines
876 B
CMake
Raw Normal View History

2019-12-16 10:02:54 +00:00
cmake_minimum_required(VERSION 3.0)
project(OpenCSG-example)
2019-12-17 15:27:28 +00:00
add_executable(opencsg_example WIN32 main.cpp GLScene.hpp GLScene.cpp
2019-12-16 10:02:54 +00:00
${CMAKE_CURRENT_SOURCE_DIR}/../../src/slic3r/GUI/ProgressStatusBar.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../src/slic3r/GUI/I18N.hpp
${CMAKE_CURRENT_SOURCE_DIR}/../../src/slic3r/GUI/I18N.cpp)
find_package(wxWidgets 3.1 REQUIRED COMPONENTS core base gl html)
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
find_package(OpenCSG REQUIRED)
include(${wxWidgets_USE_FILE})
target_link_libraries(opencsg_example libslic3r)
target_include_directories(opencsg_example PRIVATE ${wxWidgets_INCLUDE_DIRS})
target_compile_definitions(opencsg_example PRIVATE ${wxWidgets_DEFINITIONS})
2019-12-17 15:27:28 +00:00
target_link_libraries(opencsg_example ${wxWidgets_LIBRARIES}
OpenCSG::opencsg
GLEW::GLEW
OpenGL::GL
#-lXrandr -lXext -lX11
)