add new thirdparty library, stb

This commit is contained in:
falsycat 2022-11-13 17:40:22 +09:00
parent 90de6bf3f4
commit 9e51470b11
3 changed files with 22 additions and 0 deletions

View File

@ -173,6 +173,7 @@ target_link_libraries(nf7
magic_enum
miniaudio
source_location
stb
yas
yaml-cpp
)

View File

@ -231,6 +231,25 @@ target_include_directories(source_location SYSTEM INTERFACE .)
target_sources(source_location INTERFACE source_location.hh)
# ---- stb ----
# repository: https://github.com/nothings/stb
# license : Unlicense
FetchContent_Declare(
stb
URL "https://github.com/nothings/stb/archive/8b5f1f37b5b75829fc72d38e7b5d4bcbf8a26d55.zip"
)
FetchContent_Populate(stb)
add_library(stb)
target_include_directories(stb PUBLIC SYSTEM ${stb_SOURCE_DIR})
target_sources(stb
PUBLIC
${stb_SOURCE_DIR}/stb_image.h
PRIVATE
stb.c
)
# ---- yaml-cpp ----
# repository: https://github.com/jbeder/yaml-cpp
# license : MIT

2
thirdparty/stb.c vendored Normal file
View File

@ -0,0 +1,2 @@
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>