2019-02-28 15:47:59 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2024-03-16 09:39:31 +08:00
|
|
|
string(REPLACE "." "-" VERSION_CSG "${VERSION}")
|
|
|
|
|
2019-02-28 15:47:59 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO floriankirsch/OpenCSG
|
2024-03-16 09:39:31 +08:00
|
|
|
REF "opencsg-${VERSION_CSG}-release"
|
|
|
|
SHA512 531dda97fbbcfca9bd57eb2d62b34ed382788bafffff05aa4007cf6dd7093c478e6364020e58cda8adcc1bc45485c22e3a94dbc52916da6a8b418412ce7712c6
|
2019-02-28 15:47:59 +08:00
|
|
|
HEAD_REF master
|
2024-03-16 09:39:31 +08:00
|
|
|
PATCHES
|
|
|
|
illegal_char.patch
|
2019-02-28 15:47:59 +08:00
|
|
|
)
|
|
|
|
|
2024-03-16 09:39:31 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2019-02-28 15:47:59 +08:00
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_configure(
|
2024-03-16 09:39:31 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DDISABLE_INSTALL_HEADERS=ON
|
2019-02-28 15:47:59 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-02-28 15:47:59 +08:00
|
|
|
|
2024-03-16 09:39:31 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/doc/license/gpl-2.0.txt" "${SOURCE_PATH}/doc/license/gpl-3.0.txt")
|