Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 32 lines (25 sloc) 1.007 kB
ab8cff7 @jeremytregunna Added Clutter (broken) and LibSndFile addons to CMake
jeremytregunna authored
1 # Base Io build system
2 # Written by Jeremy Tregunna <jeremy.tregunna@me.com>
3 #
4 # Find libclutter.
5
cf6cb7c @petrm Added Clutter to cmake-addons
petrm authored
6 FIND_PATH(CLUTTER_INCLUDE_DIR clutter/clutter.h /usr/include/clutter-1.0/ /usr/local/include/clutter-1.0/ /usr/local/clutter-1.0/)
ab8cff7 @jeremytregunna Added Clutter (broken) and LibSndFile addons to CMake
jeremytregunna authored
7
8 SET(CLUTTER_NAMES ${CLUTTER_NAMES} clutter libclutter)
62b8829 @jeremytregunna See previous commit, forgot -a argument to commit
jeremytregunna authored
9 IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
10 LIST(APPEND CLUTTER_NAMES clutter-osx-1.0)
11 ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
cf6cb7c @petrm Added Clutter to cmake-addons
petrm authored
12
13 IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
14 LIST(APPEND CLUTTER_NAMES clutter-glx-1.0)
15 ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
16
ab8cff7 @jeremytregunna Added Clutter (broken) and LibSndFile addons to CMake
jeremytregunna authored
17 FIND_LIBRARY(CLUTTER_LIBRARY NAMES ${CLUTTER_NAMES} PATH)
18
19 IF(CLUTTER_INCLUDE_DIR AND CLUTTER_LIBRARY)
20 SET(CLUTTER_FOUND TRUE)
21 ENDIF(CLUTTER_INCLUDE_DIR AND CLUTTER_LIBRARY)
22
23 IF(CLUTTER_FOUND)
24 IF(NOT Clutter_FIND_QUIETLY)
25 MESSAGE(STATUS "Found Clutter: ${CLUTTER_LIBRARY}")
26 ENDIF (NOT Clutter_FIND_QUIETLY)
27 ELSE(CLUTTER_FOUND)
28 IF(Clutter_FIND_REQUIRED)
29 MESSAGE(FATAL_ERROR "Could not find clutter")
30 ENDIF(Clutter_FIND_REQUIRED)
31 ENDIF (CLUTTER_FOUND)
Something went wrong with that request. Please try again.