Last change
on this file since 487 was
409,
checked in by nicolape, 17 years ago
|
Simplified cmake audio lib messages
|
File size:
1.8 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 | |
---|
10 | FIND_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 | ) |
---|
20 | |
---|
21 | FIND_PATH(VORBIS_INCLUDE_DIR vorbis/codec.h |
---|
22 | /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0/include # Tardis specific hack |
---|
23 | /usr/local/include |
---|
24 | /usr/include |
---|
25 | /sw/include |
---|
26 | /opt/local/include |
---|
27 | /opt/csw/include |
---|
28 | /opt/csw/include |
---|
29 | /opt/include |
---|
30 | ) |
---|
31 | |
---|
32 | # |
---|
33 | # Libs |
---|
34 | # |
---|
35 | |
---|
36 | FIND_LIBRARY(OGG_LIBRARY |
---|
37 | NAMES ogg |
---|
38 | PATHS |
---|
39 | /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.1/lib |
---|
40 | /usr/local/lib |
---|
41 | /usr/lib |
---|
42 | /sw/lib |
---|
43 | /opt/local/lib |
---|
44 | /opt/csw/lib |
---|
45 | /opt/lib |
---|
46 | ) |
---|
47 | |
---|
48 | FIND_LIBRARY(VORBIS_LIBRARY |
---|
49 | NAMES vorbis |
---|
50 | PATHS |
---|
51 | /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.1/lib |
---|
52 | /usr/local/lib |
---|
53 | /usr/lib |
---|
54 | /sw/lib |
---|
55 | /opt/local/lib |
---|
56 | /opt/csw/lib |
---|
57 | /opt/lib |
---|
58 | ) |
---|
59 | |
---|
60 | FIND_LIBRARY(VORBISENC_LIBRARY |
---|
61 | NAMES vorbisenc |
---|
62 | PATHS |
---|
63 | /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.1/lib |
---|
64 | /usr/local/lib |
---|
65 | /usr/lib |
---|
66 | /sw/lib |
---|
67 | /opt/local/lib |
---|
68 | /opt/csw/lib |
---|
69 | /opt/lib |
---|
70 | ) |
---|
71 | |
---|
72 | FIND_LIBRARY(VORBISFILE_LIBRARY |
---|
73 | NAMES vorbisfile |
---|
74 | PATHS |
---|
75 | /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.1/lib |
---|
76 | /usr/local/lib |
---|
77 | /usr/lib |
---|
78 | /sw/lib |
---|
79 | /opt/local/lib |
---|
80 | /opt/csw/lib |
---|
81 | /opt/lib |
---|
82 | ) |
---|
83 | |
---|
84 | SET(OGG_FOUND "NO") |
---|
85 | IF(OGG_LIBRARY) |
---|
86 | SET(OGG_FOUND "YES") |
---|
87 | MESSAGE(STATUS "Ogg was found.") |
---|
88 | ENDIF(OGG_LIBRARY) |
---|
89 | |
---|
90 | SET(VORBIS_FOUND "NO") |
---|
91 | IF(VORBIS_LIBRARY) |
---|
92 | SET(VORBIS_FOUND "YES") |
---|
93 | MESSAGE(STATUS "Vorbis was found.") |
---|
94 | ENDIF(VORBIS_LIBRARY) |
---|
95 | |
---|
Note: See
TracBrowser
for help on using the repository browser.