-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
3 changed files
with
63 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# | ||
# Find and configure FLAC package | ||
# | ||
if(FLAC_INCLUDE_DIR AND FLAC_LIBRARIES) | ||
set(FLAC_FIND_QUIETLY true) | ||
endif() | ||
|
||
find_path(FLAC_INCLUDE_DIR FLAC/metadata.h) | ||
find_library(FLAC_LIBRARIES FLAC) | ||
|
||
if(FLAC_INCLUDE_DIR AND FLAC_LIBRARIES) | ||
set(FLAC_FOUND true) | ||
if(NOT FLAC_FIND_QUIETLY) | ||
message(STATUS "Found Flac: ${FLAC_LIBRARIES}") | ||
endif() | ||
else() | ||
if(FLAC_FIND_REQUIRED) | ||
message(FATAL_ERROR "Could not find FLAC") | ||
endif() | ||
if(NOT FLAC_FIND_QUIETLY) | ||
message(STATUS "Could not find FLAC") | ||
endif() | ||
endif() | ||
|
||
mark_as_advanced(FLAC_INCLUDE_DIR FLAC_LIBRARIES) | ||
|
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,25 @@ | ||
# | ||
# Find and configure FLACXX package | ||
# | ||
if(FLACXX_INCLUDE_DIR AND FLACXX_LIBRARIES) | ||
set(FLACXX_FIND_QUIETLY true) | ||
endif() | ||
|
||
find_path(FLACXX_INCLUDE_DIR FLAC++/metadata.h) | ||
find_library(FLACXX_LIBRARIES FLAC++) | ||
|
||
if(FLACXX_INCLUDE_DIR AND FLACXX_LIBRARIES) | ||
set(FLACXX_FOUND true) | ||
if(NOT FLACXX_FIND_QUIETLY) | ||
message(STATUS "Found Flac++: ${FLACXX_LIBRARIES}") | ||
endif() | ||
else() | ||
if(FLACXX_FIND_REQUIRED) | ||
message(FATAL_ERROR "Could not find FLAC++") | ||
endif() | ||
if(NOT FLACXX_FIND_QUIETLY) | ||
message(STATUS "Could not find FLAC++") | ||
endif() | ||
endif() | ||
|
||
mark_as_advanced(FLACXX_INCLUDE_DIR FLACXX_LIBRARIES) |