2018-07-09 13:34:16 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO openscenegraph/osgQt
|
2019-05-22 12:00:24 +08:00
|
|
|
REF Qt4
|
|
|
|
SHA512 426a4ba88f680978d24817248b99c68cafa4517144e6e3d2480612870c4a224bb955539cacb438274d4ee1c93c36d94f8437d142070b2ecde2b81517bf357e71
|
2018-07-09 13:34:16 +08:00
|
|
|
HEAD_REF master
|
2020-04-10 08:08:01 +08:00
|
|
|
PATCHES
|
2019-08-15 05:12:55 +08:00
|
|
|
OsgMacroUtils.patch
|
2018-07-09 13:34:16 +08:00
|
|
|
)
|
|
|
|
|
2020-04-10 08:08:01 +08:00
|
|
|
if(VCPKG_TARGET_IS_OSX)
|
|
|
|
string(APPEND VCPKG_CXX_FLAGS " -stdlib=libc++")
|
|
|
|
string(APPEND VCPKG_C_FLAGS "") # both must be set
|
|
|
|
endif()
|
2018-07-09 13:34:16 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
#Debug
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Handle License
|
2020-04-10 08:08:01 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|