mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add glm CPM dependency
This commit is contained in:
parent
205de5503f
commit
ecf785f405
3 changed files with 15 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
1
thirdparty/CMakeLists.txt
vendored
1
thirdparty/CMakeLists.txt
vendored
|
|
@ -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
13
thirdparty/cpm-glm.cmake
vendored
Normal 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()
|
||||
Loading…
Add table
Reference in a new issue