2019-12-10 10:10:46 +00:00
|
|
|
|
|
|
|
prusaslicer_add_cmake_project(OpenCSG
|
2021-03-23 18:01:18 +00:00
|
|
|
# GIT_REPOSITORY https://github.com/floriankirsch/OpenCSG.git
|
|
|
|
# GIT_TAG 83e274457b46c9ad11a4ee599203250b1618f3b9 #v1.4.2
|
|
|
|
URL https://github.com/floriankirsch/OpenCSG/archive/refs/tags/opencsg-1-4-2-release.zip
|
|
|
|
URL_HASH SHA256=51afe0db79af8386e2027d56d685177135581e0ee82ade9d7f2caff8deab5ec5
|
2019-12-10 10:10:46 +00:00
|
|
|
PATCH_COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt.in ./CMakeLists.txt
|
2019-12-10 12:57:57 +00:00
|
|
|
DEPENDS dep_GLEW
|
2019-12-11 11:24:21 +00:00
|
|
|
)
|
|
|
|
|
2020-04-28 07:56:54 +00:00
|
|
|
if (TARGET ${ZLIB_PKG})
|
|
|
|
add_dependencies(dep_OpenCSG ${ZLIB_PKG})
|
2019-12-11 12:51:16 +00:00
|
|
|
endif()
|
|
|
|
|
2019-12-11 11:24:21 +00:00
|
|
|
if (MSVC)
|
|
|
|
add_debug_dep(dep_OpenCSG)
|
|
|
|
endif ()
|