forked from rraju1/cmake-buildscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FindGtkGLExt.cmake
51 lines (37 loc) · 1.25 KB
/
FindGtkGLExt.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#Amber: Taken from https://sourceforge.net/p/k3d/k3d/ci/8ad0946f3dba84c812982f1054e57d0c02122b21/tree/cmake/modules/FindGtkGLExt.cmake
SET(GTKGLEXT_FOUND 0)
######################################################################
# Posix specific configuration
IF(UNIX)
INCLUDE(FindPkgConfig)
PKG_CHECK_MODULES(GTKGLEXT gtkglext-1.0)
ENDIF(UNIX)
######################################################################
# Win32 specific configuration
IF(WIN32)
# Configure gtkglext ...
SET(GDKGLEXT_LIB gdkglext-win32-1.0 CACHE STRING "")
MARK_AS_ADVANCED(GDKGLEXT_LIB)
SET(GTKGLEXT_LIB gtkglext-win32-1.0 CACHE STRING "")
MARK_AS_ADVANCED(GTKGLEXT_LIB)
FIND_PATH(GTKGLEXT_CONFIG_INCLUDE_DIR gdkglext-config.h
c:/gtk/lib/gtkglext-1.0/include
${K3D_GTK_DIR}/lib/gtkglext-1.0/include
DOC "Directory where the gtkglext config file is located"
)
MARK_AS_ADVANCED(GTKGLEXT_CONFIG_INCLUDE_DIR)
FIND_PATH(GTKGLEXT_INCLUDE_DIR gtk
c:/gtk/include/gtkglext-1.0
DOC "Directory where the gtkglext header files are located"
)
MARK_AS_ADVANCED(GTKGLEXT_INCLUDE_DIR)
SET(GTKGLEXT_INCLUDE_DIRS
${GTKGLEXT_CONFIG_INCLUDE_DIR}
${GTKGLEXT_INCLUDE_DIR}
)
SET(GTKGLEXT_LIBRARIES
${GDKGLEXT_LIB}
${GTKGLEXT_LIB}
)
SET(GTKGLEXT_FOUND 1)
ENDIF(WIN32)