-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #952 from Ghabry/cmake
Update CMake File
- Loading branch information
Showing
18 changed files
with
619 additions
and
226 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,10 @@ | ||
find_path(OGGVORBIS_INCLUDE_DIR vorbis/vorbisfile.h) | ||
find_library(OGGVORBIS_LIBRARY NAMES vorbisfile libvorbisfile) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(OggVorbis DEFAULT_MSG OGGVORBIS_INCLUDE_DIR OGGVORBIS_LIBRARY) | ||
|
||
set(OGGVORBIS_INCLUDE_DIRS ${OGGVORBIS_INCLUDE_DIR}) | ||
set(OGGVORBIS_LIBRARIES ${OGGVORBIS_LIBRARY}) | ||
|
||
mark_as_advanced(OGGVORBIS_INCLUDE_DIR OGGVORBIS_LIBRARY) |
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 |
---|---|---|
@@ -1,27 +1,10 @@ | ||
# SNDFILE_LIBRARIES | ||
# SNDFILE_INCLUDE_DIR | ||
# SndFile_FOUND | ||
|
||
include(FindPackageHandleStandardArgs) | ||
|
||
find_library(OGG_LIBRARY ogg) | ||
find_library(FLAC_LIBRARY FLAC) | ||
find_library(VORBIS_LIBRARY vorbis) | ||
find_library(VORBISENC_LIBRARY vorbisenc) | ||
|
||
find_library(SNDFILE_LIBRARY sndfile) | ||
find_path(SNDFILE_INCLUDE_DIR sndfile.h) | ||
find_library(SNDFILE_LIBRARY NAMES sndfile libsndfile) | ||
|
||
if((EXISTS ${SNDFILE_LIBRARY}) AND (EXISTS ${SNDFILE_INCLUDE_DIR})) | ||
foreach(i OGG_LIBRARY FLAC_LIBRARY VORBIS_LIBRARY VORBISENC_LIBRARY) | ||
if(EXISTS ${${i}}) | ||
list(APPEND SNDFILE_LIBRARIES "${${i}}") | ||
endif() | ||
endforeach() | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(SndFile DEFAULT_MSG SNDFILE_INCLUDE_DIR SNDFILE_LIBRARY) | ||
|
||
list(APPEND SNDFILE_LIBRARIES "${SNDFILE_LIBRARY}") | ||
message(STATUS "sndfile dependencies: ${SNDFILE_LIBRARIES}") | ||
endif() | ||
set(SNDFILE_INCLUDE_DIRS ${SNDFILE_INCLUDE_DIR}) | ||
set(SNDFILE_LIBRARIES ${SNDFILE_LIBRARY}) | ||
|
||
find_package_handle_standard_args(SndFile | ||
REQUIRED_VARS SNDFILE_INCLUDE_DIR SNDFILE_LIBRARIES) | ||
mark_as_advanced(SNDFILE_INCLUDE_DIR SNDFILE_LIBRARY) |
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,10 @@ | ||
find_path(WILDMIDI_INCLUDE_DIR wildmidi_lib.h) | ||
find_library(WILDMIDI_LIBRARY NAMES wildmidi libwildmidi WildMidi libWildMidi) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(wildmidi DEFAULT_MSG WILDMIDI_INCLUDE_DIR WILDMIDI_LIBRARY) | ||
|
||
set(WILDMIDI_INCLUDE_DIRS ${WILDMIDI_INCLUDE_DIR}) | ||
set(WILDMIDI_LIBRARIES ${WILDMIDI_LIBRARY}) | ||
|
||
mark_as_advanced(WILDMIDI_INCLUDE_DIR WILDMIDI_LIBRARY) |
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,24 @@ | ||
include(FindPackageHandleStandardArgs) | ||
|
||
find_path(XMP_INCLUDE_DIR_INTERNAL xmp.h) | ||
find_library(XMP_LIBRARY xmp libxmp xmp-lite libxmp-lite) | ||
if(EXISTS "${XMP_INCLUDE_DIR_INTERNAL}") | ||
set(XMP_INCLUDE_DIR "${XMP_INCLUDE_DIR_INTERNAL}") | ||
else() | ||
find_path(XMP_INCLUDE_DIR_INTERNAL libxmp/xmp.h) | ||
if(EXISTS "${XMP_INCLUDE_DIR_INTERNAL}") | ||
set(XMP_INCLUDE_DIR "${XMP_INCLUDE_DIR_INTERNAL}/libxmp") | ||
else() | ||
find_path(XMP_INCLUDE_DIR_INTERNAL libxmp-lite/xmp.h) | ||
if(EXISTS "${XMP_INCLUDE_DIR_INTERNAL}") | ||
set(XMP_INCLUDE_DIR "${XMP_INCLUDE_DIR_INTERNAL}/libxmp-lite") | ||
endif() | ||
endif() | ||
endif() | ||
|
||
find_package_handle_standard_args(XMP REQUIRED_VARS XMP_INCLUDE_DIR XMP_LIBRARY) | ||
|
||
set(XMP_INCLUDE_DIRS ${XMP_INCLUDE_DIR}) | ||
set(XMP_LIBRARIES ${XMP_LIBRARY}) | ||
|
||
mark_as_advanced(XMP_INCLUDE_DIR XMP_LIBRARY) |
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,13 @@ | ||
find_path(LIBLCF_INCLUDE_DIR_INTERNAL liblcf/reader_lcf.h) | ||
find_library(LIBLCF_LIBRARY NAMES lcf liblcf) | ||
if(EXISTS "${LIBLCF_INCLUDE_DIR_INTERNAL}") | ||
set(LIBLCF_INCLUDE_DIR "${LIBLCF_INCLUDE_DIR_INTERNAL}/liblcf") | ||
endif() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(liblcf DEFAULT_MSG LIBLCF_INCLUDE_DIR LIBLCF_LIBRARY) | ||
|
||
set(LIBLCF_INCLUDE_DIRS ${LIBLCF_INCLUDE_DIR}) | ||
set(LIBLCF_LIBRARIES ${LIBLCF_LIBRARY}) | ||
|
||
mark_as_advanced(LIBLCF_INCLUDE_DIR LIBLCF_LIBRARY) |
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,10 @@ | ||
find_path(SPEEXDSP_INCLUDE_DIR speex/speex_resampler.h) | ||
find_library(SPEEXDSP_LIBRARY NAMES speexdsp libspeexdsp) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(speexdsp DEFAULT_MSG SPEEXDSP_INCLUDE_DIR SPEEXDSP_LIBRARY) | ||
|
||
set(SPEEXDSP_INCLUDE_DIRS ${SPEEXDSP_INCLUDE_DIR}) | ||
set(SPEEXDSP_LIBRARIES ${SPEEXDSP_LIBRARY}) | ||
|
||
mark_as_advanced(SPEEXDSP_INCLUDE_DIR SPEEXDSP_LIBRARY) |
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
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