| From 1320541ceaa321b2c0e105ba1c4161cfb9ee12f1 Mon Sep 17 00:00:00 2001 |
| From: Ray Donnelly <mingw.android@gmail.com> |
| Date: Wed, 22 Jul 2015 08:44:33 +0100 |
| Subject: [PATCH 4/6] tests (MinGW-w64): Use find_package(OpenGL) in |
| CMakeLists.txt |
| |
| --- |
| CMakeLists.txt | 4 ++++ |
| 1 file changed, 4 insertions(+) |
| |
| diff --git a/CMakeLists.txt b/CMakeLists.txt |
| index c058bef..d6ab5d8 100644 |
| --- a/CMakeLists.txt |
| +++ b/CMakeLists.txt |
| @@ -42,6 +42,10 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
| find_library(OpenGL_LIBRARY OpenGL ) |
| target_link_libraries(glsl_test ${OpenGL_LIBRARY}) |
| endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
| +if(MINGW) |
| + find_package(OpenGL) |
| + target_link_libraries(glsl_test ${OPENGL_gl_LIBRARY}) |
| +endif(MINGW) |
| |
| file(GLOB glslopt_sources contrib/glslopt/*.cpp) |
| add_executable(glslopt ${glslopt_sources}) |
| -- |
| 2.4.5 |
| |