vcpkg/ports/globjects/portfile.cmake

38 lines
1.1 KiB
CMake
Raw Normal View History

2016-11-27 04:00:53 +08:00
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO cginternals/globjects
REF dc68b09a53ec20683d3b3a12ed8d9cb12602bb9a
SHA512 5145df795a73a8d74e983e143fd57441865f3082860efb89a3aa8c4d64c2eb6f0256a8049ccd5479dd77e53ef6638d9c903b29a8ef2b41a076003d9595912500
HEAD_REF master
PATCHES system-install.patch
2016-11-27 04:00:53 +08:00
)
2017-11-15 18:42:09 +08:00
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
2017-11-15 18:42:09 +08:00
OPTIONS
-DOPTION_BUILD_TESTS=OFF
-DOPTION_BUILD_GPU_TESTS=OFF
-DGIT_REV=0
2017-11-15 18:42:09 +08:00
)
2016-11-27 04:00:53 +08:00
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/globjects/cmake/globjects TARGET_PATH share/globjects/cmake/globjects)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
2016-11-27 04:14:30 +08:00
file(WRITE ${CURRENT_PACKAGES_DIR}/share/globjects/globjects-config.cmake "include(CMakeFindDependencyMacro)
find_dependency(glm)
find_dependency(glbinding)
2016-11-27 04:14:30 +08:00
include(\${CMAKE_CURRENT_LIST_DIR}/cmake/globjects/globjects-export.cmake)
")
2016-11-27 04:00:53 +08:00
# Handle copyright
2016-11-27 04:14:30 +08:00
file(RENAME ${CURRENT_PACKAGES_DIR}/share/globjects/LICENSE ${CURRENT_PACKAGES_DIR}/share/globjects/copyright)
vcpkg_copy_pdbs()