File: FindOgg.cmake

package info (click to toggle)
fife 0.4.0-3%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 26,884 kB
  • ctags: 31,782
  • sloc: cpp: 81,128; xml: 18,838; python: 10,549; makefile: 17
file content (21 lines) | stat: -rw-r--r-- 453 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cmake_minimum_required(VERSION 2.8)

find_path(OGG_INCLUDE_DIR ogg/ogg.h)

set(OGG_NAMES ${OGG_NAMES} ogg libogg)

find_library(OGG_LIBRARY NAMES ${OGG_NAMES} PATH)

if(OGG_INCLUDE_DIR AND OGG_LIBRARY)
    set(OGG_FOUND TRUE)
endif()

if(OGG_FOUND)
    if(NOT OGG_FIND_QUIETLY)
        message(STATUS "Found Ogg: ${OGG_LIBRARY}")
    endif()
else(OGG_FOUND)
    if(OGG_FIND_REQUIRED)
        message(FATAL_ERROR "Could not find ogg")
    endif()
endif()