mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 12:28:59 +08:00
2cfbf01199
* update osg-qt from Qt4 tag to master brach(Qt5) * [osg-qt]: update version to Qt5#4 * Apply suggestions from code review * Update versions/baseline.json * Update versions/o-/osg-qt.json * Update versions/baseline.json * Update versions/o-/osg-qt.json Co-authored-by: nicole mazzuca <mazzucan@outlook.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
40 lines
1.2 KiB
CMake
40 lines
1.2 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO openscenegraph/osgQt
|
|
REF 2cb70673a4e83a618290e7ee66d52402a94ec3f6
|
|
SHA512 29aeb5b31e70d5b12e69de7970b36ab7d1541c984873384a46c6468394e8562688c46ef39179820990817c94f283c7836c2c6ff207eefe385086d850ba3f8306
|
|
HEAD_REF master
|
|
PATCHES
|
|
OsgMacroUtils.patch
|
|
fix-static-install.patch
|
|
CMakeLists.patch
|
|
)
|
|
|
|
if(VCPKG_TARGET_IS_OSX)
|
|
string(APPEND VCPKG_CXX_FLAGS " -stdlib=libc++")
|
|
string(APPEND VCPKG_C_FLAGS "") # both must be set
|
|
endif()
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
|
set(OPTIONS -DDYNAMIC_OPENSCENEGRAPH=ON)
|
|
else()
|
|
set(OPTIONS -DDYNAMIC_OPENSCENEGRAPH=OFF)
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS ${OPTIONS}
|
|
-DBUILD_OSG_EXAMPLES=OFF
|
|
-DOSG_BUILD_APPLICATION_BUNDLES=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
#Debug
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle License
|
|
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)
|