Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/shader/cmake/FindOggVorbis.cmake @ 1686

Last change on this file since 1686 was 1505, checked in by rgrieder, 16 years ago

f* svn: It doesn't even inform you if you attempt to set a non existing property. It is svn:eol-style and not eol-style when using the command by the way…

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1
2#SET(OGGVORBIS_LIBRARY_DIR "/usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0/lib")
3#SET(OGGVORBIS_LIBRARY "-L ${OGGVORBIS_LIBRARY_DIR} -lvorbisenc -lvorbisfile -logg -lvorbis ")
4#SET(OGGVORBIS_INCLUDE_DIR "/usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0/include")
5
6#
7# Includes
8#
9
10FIND_PATH(OGG_INCLUDE_DIR ogg/ogg.h
11  /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0/include               # Tardis specific hack
12  /usr/local/include
13  /usr/include
14  /sw/include
15  /opt/local/include
16  /opt/csw/include
17  /opt/csw/include
18  /opt/include
19  ../libs/libogg-1.1.3/include
20  )
21
22FIND_PATH(VORBIS_INCLUDE_DIR vorbis/codec.h
23  /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0/include               # Tardis specific hack
24  /usr/local/include
25  /usr/include
26  /sw/include
27  /opt/local/include
28  /opt/csw/include
29  /opt/csw/include
30  /opt/include
31  ../libs/libvorbis-1.2.0/include
32  )
33
34#
35# Libs
36#
37
38FIND_LIBRARY(OGG_LIBRARY
39  NAMES ogg
40  PATHS
41  /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.1/lib
42  /usr/local/lib
43  /usr/lib
44  /sw/lib
45  /opt/local/lib
46  /opt/csw/lib
47  /opt/lib
48  ../libs/libogg-1.1.3/src/.libs
49  )
50
51FIND_LIBRARY(VORBIS_LIBRARY
52  NAMES vorbis
53  PATHS
54  /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.1/lib
55  /usr/local/lib
56  /usr/lib
57  /sw/lib
58  /opt/local/lib
59  /opt/csw/lib
60  /opt/lib
61  ../libs/libvorbis-1.2.0/lib/.libs
62  )
63
64FIND_LIBRARY(VORBISENC_LIBRARY
65  NAMES vorbisenc
66  PATHS
67  /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.1/lib
68  /usr/local/lib
69  /usr/lib
70  /sw/lib
71  /opt/local/lib
72  /opt/csw/lib
73  /opt/lib
74  ../libs/libvorbis-1.2.0/lib/.libs
75  )
76
77FIND_LIBRARY(VORBISFILE_LIBRARY
78  NAMES vorbisfile
79  PATHS
80  /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.1/lib
81  /usr/local/lib
82  /usr/lib
83  /sw/lib
84  /opt/local/lib
85  /opt/csw/lib
86  /opt/lib
87  ../libs/libvorbis-1.2.0/lib/.libs
88  )
89
90SET(OGG_FOUND "NO")
91IF(OGG_LIBRARY)
92  SET(OGG_FOUND "YES")
93        MESSAGE(STATUS "Ogg was found.")
94ENDIF(OGG_LIBRARY)
95
96SET(VORBIS_FOUND "NO")
97IF(VORBIS_LIBRARY)
98  SET(VORBIS_FOUND "YES")
99        MESSAGE(STATUS "Vorbis was found.")
100ENDIF(VORBIS_LIBRARY)
101
Note: See TracBrowser for help on using the repository browser.