-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
1 parent
2d6b798
commit 566c61c
Showing
7 changed files
with
93 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
if(TARGET FLAC) | ||
set(FLAC_FOUND TRUE) | ||
set(FLAC_INCLUDE_DIRS $<TARGET_PROPERTY:FLAC,INTERFACE_INCLUDE_DIRECTORIES>) | ||
set(FLAC_LIBRARIES FLAC) | ||
|
||
# Provide an alias for consistency with modern CMake | ||
if(NOT TARGET FLAC::FLAC) | ||
add_library(FLAC::FLAC ALIAS FLAC) | ||
endif() | ||
else() | ||
set(FLAC_FOUND FALSE) | ||
message(FATAL_ERROR "Flac was not added with add_subdirectory before calling find_package(FLAC).") | ||
endif() |
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 @@ | ||
if(TARGET ogg) | ||
set(OGG_FOUND TRUE) | ||
set(OGG_INCLUDE_DIRS $<TARGET_PROPERTY:ogg,INTERFACE_INCLUDE_DIRECTORIES>) | ||
set(OGG_LIBRARIES ogg) | ||
|
||
# Provide an alias for consistency with modern CMake | ||
if(NOT TARGET OGG::OGG) | ||
add_library(OGG::OGG ALIAS ogg) | ||
endif() | ||
else() | ||
set(OGG_FOUND FALSE) | ||
message(FATAL_ERROR "Ogg was not added with add_subdirectory before calling find_package(Ogg).") | ||
endif() |
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 @@ | ||
if(TARGET opus) | ||
set(OPUS_FOUND TRUE) | ||
set(OPUS_INCLUDE_DIRS $<TARGET_PROPERTY:opus,INTERFACE_INCLUDE_DIRECTORIES>) | ||
set(OPUS_LIBRARIES opus) | ||
|
||
# Provide an alias for consistency with modern CMake | ||
if(NOT TARGET OPUS::OPUS) | ||
add_library(OPUS::OPUS ALIAS opus) | ||
endif() | ||
else() | ||
set(OPUS_FOUND FALSE) | ||
message(FATAL_ERROR "Opus was not added with add_subdirectory before calling find_package(Opus).") | ||
endif() |
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 @@ | ||
if(TARGET pcre) | ||
set(PCRE_FOUND TRUE) | ||
set(PCRE_INCLUDE_DIRS $<TARGET_PROPERTY:pcre,INTERFACE_INCLUDE_DIRECTORIES>) | ||
set(PCRE_LIBRARIES pcre) | ||
|
||
# Provide an alias for consistency with modern CMake | ||
if(NOT TARGET PCRE::PCRE) | ||
add_library(PCRE::PCRE ALIAS pcre) | ||
endif() | ||
else() | ||
set(PCRE_FOUND FALSE) | ||
message(FATAL_ERROR "PCRE was not added with add_subdirectory before calling find_package(PCRE).") | ||
endif() |
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,14 @@ | ||
# Ensure SDL2 has been added before using this module | ||
if(TARGET SDL2) | ||
set(SDL2_FOUND TRUE) | ||
set(SDL2_INCLUDE_DIRS $<TARGET_PROPERTY:SDL2,INTERFACE_INCLUDE_DIRECTORIES>) | ||
set(SDL2_LIBRARIES SDL2) | ||
message(STATUS "Using Torques build of SDL2.") | ||
# Provide an alias for consistency with modern CMake | ||
if(NOT TARGET SDL2::SDL2) | ||
add_library(SDL2::SDL2 ALIAS SDL2) | ||
endif() | ||
else() | ||
set(SDL2_FOUND FALSE) | ||
message(FATAL_ERROR "SDL2 was not added with add_subdirectory before calling find_package(SDL2).") | ||
endif() |
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 @@ | ||
if(TARGET vorbis) | ||
set(VORBIS_FOUND TRUE) | ||
set(VORBIS_INCLUDE_DIRS $<TARGET_PROPERTY:vorbis,INTERFACE_INCLUDE_DIRECTORIES>) | ||
set(VORBIS_LIBRARIES vorbis) | ||
|
||
# Provide an alias for consistency with modern CMake | ||
if(NOT TARGET VORBIS::VORBIS) | ||
add_library(VORBIS::VORBIS ALIAS vorbis) | ||
endif() | ||
else() | ||
set(VORBIS_FOUND FALSE) | ||
message(FATAL_ERROR "Vorbis was not added with add_subdirectory before calling find_package(Vorbis).") | ||
endif() |
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,14 @@ | ||
# Ensure zlib has been added before using this module | ||
if(TARGET zlib) | ||
set(ZLIB_FOUND TRUE) | ||
set(ZLIB_INCLUDE_DIRS $<TARGET_PROPERTY:zlib,INTERFACE_INCLUDE_DIRECTORIES>) | ||
set(ZLIB_LIBRARIES zlib) | ||
message(STATUS "Using Torques build of zlib.") | ||
# Provide an alias for consistency with modern CMake | ||
if(NOT TARGET ZLIB::ZLIB) | ||
add_library(ZLIB::ZLIB ALIAS zlib) | ||
endif() | ||
else() | ||
set(ZLIB_FOUND FALSE) | ||
message(FATAL_ERROR "Zlib was not added with add_subdirectory before calling find_package(ZLIB).") | ||
endif() |