Skip to content
This repository
Newer
Older
100755 31 lines (25 sloc) 1.007 kb
ab8cff74 » jeremytregunna
2010-05-09 Added Clutter (broken) and LibSndFile addons to CMake
1 # Base Io build system
2 # Written by Jeremy Tregunna <jeremy.tregunna@me.com>
3 #
4 # Find libclutter.
5
cf6cb7c5 » petrm
2010-05-11 Added Clutter to cmake-addons
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/)
ab8cff74 » jeremytregunna
2010-05-09 Added Clutter (broken) and LibSndFile addons to CMake
7
8 SET(CLUTTER_NAMES ${CLUTTER_NAMES} clutter libclutter)
62b88293 » jeremytregunna
2010-05-09 See previous commit, forgot -a argument to commit
9 IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
10 LIST(APPEND CLUTTER_NAMES clutter-osx-1.0)
11 ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
cf6cb7c5 » petrm
2010-05-11 Added Clutter to cmake-addons
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
ab8cff74 » jeremytregunna
2010-05-09 Added Clutter (broken) and LibSndFile addons to CMake
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.