89450b7e11
Including FindPkgConfig directly into scripts is not a recommended practice. Doing so will cause CMake to complain with a warning. Replaced with find_package(PkgConfig QUIET)
14 lines
276 B
CMake
14 lines
276 B
CMake
#use pkg-config to find various modues
|
|
find_package(PkgConfig QUIET)
|
|
|
|
IF(PKG_CONFIG_FOUND)
|
|
PKG_CHECK_MODULES(GTK gtk+-2.0)
|
|
|
|
IF(WIN32)
|
|
PKG_CHECK_MODULES(GTKGL gtkglext-win32-1.0)
|
|
ELSE()
|
|
PKG_CHECK_MODULES(GTKGL gtkglext-x11-1.0)
|
|
ENDIF()
|
|
|
|
ENDIF()
|