-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dextinfire
committed
Sep 8, 2024
1 parent
b554fae
commit 9d6fa84
Showing
6 changed files
with
110 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
set(_LIBOGG_SEARCH | ||
PATHS | ||
~/Library/Frameworks | ||
/Library/Frameworks | ||
/sw # Fink | ||
/opt/local # DarwinPorts | ||
/opt/csw # Blastwave | ||
/opt | ||
/usr | ||
/usr/local | ||
) | ||
|
||
foreach(search ${_LIBOGG_SEARCH}) | ||
|
||
find_path(OGG_INCLUDE_DIR ogg/ogg.h | ||
HINTS | ||
ENV OGGDIR | ||
PATH_SUFFIXES include | ||
) | ||
|
||
find_library(OGG_LIBRARY | ||
NAMES ogg | ||
HINTS | ||
ENV OGGDIR | ||
PATH_SUFFIXES libx32 lib64 lib libs64 libs | ||
) | ||
|
||
endforeach() | ||
|
||
unset(_LIBOGG_SEARCH) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Ogg DEFAULT_MSG OGG_LIBRARY OGG_INCLUDE_DIR) | ||
|
||
mark_as_advanced(OGG_LIBRARY OGG_INCLUDE_DIR) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
set(_LIBVORBIS_SEARCH | ||
PATHS | ||
~/Library/Frameworks | ||
/Library/Frameworks | ||
/sw # Fink | ||
/opt/local # DarwinPorts | ||
/opt/csw # Blastwave | ||
/opt | ||
/usr | ||
/usr/local | ||
) | ||
|
||
foreach(search ${_LIBVORBIS_SEARCH}) | ||
|
||
find_path(VORBIS_INCLUDE_DIR vorbis/vorbisfile.h | ||
HINTS | ||
ENV VORBISDIR | ||
PATH_SUFFIXES include | ||
|
||
) | ||
|
||
find_library(VORBIS_LIBRARY | ||
NAMES vorbis | ||
HINTS | ||
ENV VORBISDIR | ||
PATH_SUFFIXES libx32 lib64 lib libs64 libs | ||
) | ||
|
||
find_library(VORBISFILE_LIBRARY | ||
NAMES vorbisfile Vorbis::vorbisFile | ||
HINTS | ||
ENV VORBISDIR | ||
PATH_SUFFIXES libx32 lib64 lib libs64 libs | ||
) | ||
|
||
endforeach() | ||
|
||
unset(_LIBVORBIS_SEARCH) | ||
|
||
set(VORBIS_LIBRARIES | ||
${VORBIS_LIBRARY} | ||
${VORBISFILE_LIBRARY} | ||
) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Vorbis DEFAULT_MSG VORBIS_LIBRARIES VORBIS_INCLUDE_DIR) | ||
|
||
mark_as_advanced(VORBIS_LIBRARIES VORBIS_INCLUDE_DIR) |