From 7b3afcaf77f96e7d62f6cd1623ead7f17512d79f Mon Sep 17 00:00:00 2001 From: Omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 24 Feb 2024 22:47:46 +1100 Subject: repo init. partial port of existing code --- deps/glfw-3.3.8/CMake/modules/FindOSMesa.cmake | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 deps/glfw-3.3.8/CMake/modules/FindOSMesa.cmake (limited to 'deps/glfw-3.3.8/CMake/modules/FindOSMesa.cmake') diff --git a/deps/glfw-3.3.8/CMake/modules/FindOSMesa.cmake b/deps/glfw-3.3.8/CMake/modules/FindOSMesa.cmake new file mode 100644 index 0000000..3194bd9 --- /dev/null +++ b/deps/glfw-3.3.8/CMake/modules/FindOSMesa.cmake @@ -0,0 +1,18 @@ +# Try to find OSMesa on a Unix system +# +# This will define: +# +# OSMESA_LIBRARIES - Link these to use OSMesa +# OSMESA_INCLUDE_DIR - Include directory for OSMesa +# +# Copyright (c) 2014 Brandon Schaefer + +if (NOT WIN32) + + find_package (PkgConfig) + pkg_check_modules (PKG_OSMESA QUIET osmesa) + + set (OSMESA_INCLUDE_DIR ${PKG_OSMESA_INCLUDE_DIRS}) + set (OSMESA_LIBRARIES ${PKG_OSMESA_LIBRARIES}) + +endif () -- cgit v1.2.3-70-g09d2