aboutsummaryrefslogtreecommitdiff
path: root/ports/opengl
diff options
context:
space:
mode:
authorNagy-Egri Máté Ferenc <nagy-egri.mate@wigner.mta.hu>2019-09-11 21:57:02 +0200
committerCurtis J Bezault <curtbezault@gmail.com>2019-09-11 12:57:02 -0700
commitcdbaa03cdda27071675daa21f65a8ab0550fd280 (patch)
treeada58391b1bf40da6b4e5ab2c1c8d2bcce129208 /ports/opengl
parent2b277b4ef6acb5872c5f98136db7cdb6c486cf02 (diff)
downloadvcpkg-cdbaa03cdda27071675daa21f65a8ab0550fd280.tar.gz
vcpkg-cdbaa03cdda27071675daa21f65a8ab0550fd280.zip
Linux support for the OpenCL SDK package (#4204)
Enable building OpenCL libraries on Linux and macOS.
Diffstat (limited to 'ports/opengl')
-rw-r--r--ports/opengl/usage24
1 files changed, 24 insertions, 0 deletions
diff --git a/ports/opengl/usage b/ports/opengl/usage
new file mode 100644
index 000000000..33e33f6c7
--- /dev/null
+++ b/ports/opengl/usage
@@ -0,0 +1,24 @@
+The package opengl is compatible with built-in CMake targets via CMake v3.7 and prior syntax
+
+ find_package(OpenGL REQUIRED)
+ target_link_libraries(main PRIVATE ${OPENGL_LIBRARIES})
+ target_include_directories(main PRIVATE ${OPENGL_INCLUDE_DIR})
+
+and the CMake v3.8 and beyond imported target syntax
+
+ find_package(OpenGL REQUIRED)
+ target_link_libraries(main PRIVATE OpenGL::GL)
+
+introduction of various components
+
+ find_package(OpenGL REQUIRED COMPONENTS GL # v3.8
+ GLU # v3.8
+ GLX # v3.10
+ EGL # v3.10
+ OpenGL) # v3.10
+
+The OpenGL SDK is highly platform dependent and is usually an OS component. It's not realistic to build from source for every platform.
+
+ WINDOWS: is part of the Windows SDK which this package installs.
+ LINUX: the SDK may be installed from your distro's repo or from 3rd parties manually. There are too many to count.
+ APPLE: consult your distribution vendor on the state of OpenGL support: https://support.apple.com/en-us/HT202823