mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
link libs
This commit is contained in:
parent
873fbbf1fe
commit
320b91fe34
5 changed files with 20 additions and 57 deletions
|
|
@ -1,13 +0,0 @@
|
|||
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()
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
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()
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
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()
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
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()
|
||||
if(NOT TARGET Vorbis::vorbisenc)
|
||||
add_library(Vorbis::vorbisenc ALIAS vorbisenc)
|
||||
endif()
|
||||
else()
|
||||
set(VORBIS_FOUND FALSE)
|
||||
message(FATAL_ERROR "Vorbis was not added with add_subdirectory before calling find_package(Vorbis).")
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue