mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 09:43:02 +08:00
parent
c44c085e8b
commit
3ae8349d1b
@ -1,3 +1,3 @@
|
||||
Source: opengl
|
||||
Version: 10.0.10240.0
|
||||
Version: 0.0-1
|
||||
Description: Open Graphics Library (OpenGL)[3][4][5] is a cross-language, cross-platform application programming interface (API) for rendering 2D and 3D vector graphics.
|
@ -1,9 +1,19 @@
|
||||
set(OPENGLPATH "C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.10240.0\\um\\${TRIPLET_SYSTEM_ARCH}\\OpenGL32.Lib")
|
||||
set(LICENSEPATH "C:\\Program Files (x86)\\Windows Kits\\10\\Licenses\\10.0.10240.0\\sdk_license.rtf")
|
||||
set(HEADERSPATH "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10240.0\\um")
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_get_program_files_32_bit(PROGRAM_FILES_32_BIT)
|
||||
vcpkg_get_windows_sdk(WINDOWS_SDK)
|
||||
|
||||
if (${WINDOWS_SDK} STREQUAL "10")
|
||||
set(OPENGLPATH "${PROGRAM_FILES_32_BIT}\\Windows Kits\\10\\Lib\\${WINDOWS_SDK}\\um\\${TRIPLET_SYSTEM_ARCH}\\OpenGL32.Lib")
|
||||
set(LICENSEPATH "${PROGRAM_FILES_32_BIT}\\Windows Kits\\10\\Licenses\\${WINDOWS_SDK}\\sdk_license.rtf")
|
||||
set(HEADERSPATH "${PROGRAM_FILES_32_BIT}\\Windows Kits\\10\\Include\\${WINDOWS_SDK}\\um")
|
||||
else()
|
||||
message(FATAL_ERROR "Portfile not yet configured for Windows SDK with version: ${WINDOWS_SDK}")
|
||||
endif()
|
||||
|
||||
|
||||
if (NOT EXISTS "${OPENGLPATH}")
|
||||
message(FATAL_ERROR "Cannot find Windows 10.0.10240.0 SDK. File does not exist: ${OPENGLPATH}")
|
||||
message(FATAL_ERROR "Cannot find Windows ${WINDOWS_SDK} SDK. File does not exist: ${OPENGLPATH}")
|
||||
endif()
|
||||
|
||||
file(MAKE_DIRECTORY
|
||||
|
Loading…
Reference in New Issue
Block a user