add new thirdparty library, stb
This commit is contained in:
parent
90de6bf3f4
commit
9e51470b11
@ -173,6 +173,7 @@ target_link_libraries(nf7
|
||||
magic_enum
|
||||
miniaudio
|
||||
source_location
|
||||
stb
|
||||
yas
|
||||
yaml-cpp
|
||||
)
|
||||
|
19
thirdparty/CMakeLists.txt
vendored
19
thirdparty/CMakeLists.txt
vendored
@ -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
2
thirdparty/stb.c
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include <stb_image.h>
|
Loading…
x
Reference in New Issue
Block a user