CMake: Make dll bundling optional
[xonotic/netradiant.git] / cmake / FindGtkGLExt.cmake
1 include(FindPkgConfig)
2 if (PKG_CONFIG_FOUND)
3     if (GtkGLExt_FIND_REQUIRED)
4         set(_PACKAGE_ARGS REQUIRED)
5     else ()
6         set(_PACKAGE_ARGS "")
7     endif ()
8     pkg_check_modules(GTK gtk+-2.0 ${_PACKAGE_ARGS})
9     if (XWINDOWS)
10         pkg_check_modules(GTKGL gtkglext-x11-1.0 ${_PACKAGE_ARGS})
11     elseif (WIN32)
12         pkg_check_modules(GTKGL gtkglext-win32-1.0 ${_PACKAGE_ARGS})
13     else ()
14         pkg_check_modules(GTKGL gtkglext-quartz-1.0 ${_PACKAGE_ARGS})
15     endif ()
16 endif ()