vcpkg/ports/opencsg/portfile.cmake

26 lines
755 B
CMake
Raw Normal View History

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2024-03-16 09:39:31 +08:00
string(REPLACE "." "-" VERSION_CSG "${VERSION}")
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
HEAD_REF master
2024-03-16 09:39:31 +08:00
PATCHES
illegal_char.patch
)
2024-03-16 09:39:31 +08:00
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure(
2024-03-16 09:39:31 +08:00
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG
-DDISABLE_INSTALL_HEADERS=ON
)
vcpkg_cmake_install()
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")