2010-11-12 00:51:46 +08:00
|
|
|
#use pkg-config to find various modues
|
2020-03-23 06:46:50 +08:00
|
|
|
find_package(PkgConfig QUIET)
|
2010-11-12 00:51:46 +08:00
|
|
|
|
|
|
|
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()
|