Add glm CPM dependency

This commit is contained in:
Eidolon 2023-03-23 11:19:26 -05:00
parent 205de5503f
commit ecf785f405
3 changed files with 15 additions and 0 deletions

View file

@ -235,6 +235,7 @@ target_compile_definitions(SRB2SDL2 PRIVATE -DHAVE_DISCORDRPC -DUSE_STUN)
target_sources(SRB2SDL2 PRIVATE discord.c stun.c)
target_link_libraries(SRB2SDL2 PRIVATE tcbrindle::span)
target_link_libraries(SRB2SDL2 PRIVATE glm)
target_link_libraries(SRB2SDL2 PRIVATE stb_rect_pack)
target_link_libraries(SRB2SDL2 PRIVATE stb_vorbis)
target_link_libraries(SRB2SDL2 PRIVATE xmp-lite::xmp-lite)

View file

@ -17,6 +17,7 @@ if(NOT "${SRB2_CONFIG_SYSTEM_LIBRARIES}")
include("cpm-libgme.cmake")
endif()
include("cpm-glm.cmake")
include("cpm-rapidjson.cmake")
include("cpm-discordrpc.cmake")
include("cpm-xmp-lite.cmake")

13
thirdparty/cpm-glm.cmake vendored Normal file
View file

@ -0,0 +1,13 @@
CPMAddPackage(
NAME glm
VERSION 0.9.9.8
URL "https://github.com/g-truc/glm/releases/download/0.9.9.8/glm-0.9.9.8.zip"
EXCLUDE_FROM_ALL ON
DOWNLOAD_ONLY ON
)
if(glm_ADDED)
add_library(glm INTERFACE)
add_library(glm::glm ALIAS glm)
target_include_directories(glm INTERFACE "${glm_SOURCE_DIR}")
endif()