2 # This module finds if GLIB is installed and determines where the
3 # include files and libraries are. It also determines what the name of
4 # the library is. This code sets the following variables:
6 # GLIB_FOUND = system has GLIB and it should be used
7 # GLIB_LIBRARIES = full path to the GLIB library and linker flags on unix
8 # CMAKE_GLIB_CXX_FLAGS = compiler flags for building GLIB
9 # GLIB_INCLUDE_DIR = include path of GLIB
14 FIND_PROGRAM(CMAKE_GLIB_CONFIG glib-config ../glib/bin ../../glib/bin)
15 SET(CMAKE_GLIB_CXX_FLAGS "`${CMAKE_GLIB_CONFIG} --cflags`")
16 SET(GLIB_LIBRARIES "`${CMAKE_GLIB_CONFIG} --libs`")
20 SET (GLIB_POSSIBLE_PATHS
22 $ENV{CREATIS}/glib-1.3/src/glib
23 "C:/glib-1.3/src/glib"
25 FIND_LIBRARY(GLIB_SHARED_LIBRARY
27 PATHS ${GLIB_POSSIBLE_PATHS}
30 FIND_PATH(GLIB_INCLUDE_DIR
32 ${GLIB_POSSIBLE_PATHS}
38 FIND_PROGRAM(CMAKE_GLIB_CONFIG glib-config ../glib/bin ../../glib/bin)
39 SET(CMAKE_GLIB_CXX_FLAGS "`${CMAKE_GLIB_CONFIG} --cflags`")
40 SET(GLIB_LIBRARIES "`${CMAKE_GLIB_CONFIG} --libs`")
52 IF(GLIB_INCLUDE_DIR OR CMAKE_GLIB_CXX_FLAGS)
53 SET(CMAKE_GLIB_CAN_COMPILE 1)
55 ENDIF(GLIB_INCLUDE_DIR OR CMAKE_GLIB_CXX_FLAGS)