add more stb

This commit is contained in:
Green Sky 2021-04-08 21:42:11 +02:00
parent 98e9ae936c
commit 07df333e3e
3 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,12 @@ target_include_directories(stb INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
add_library(stb_image "stb/stb_image.h" "stb_image.cpp")
target_link_libraries(stb_image stb)
add_library(stb_image_write "stb/stb_image_write.h" "stb_image_write.cpp")
target_link_libraries(stb_image_write stb)
add_library(stb_perlin "stb/stb_perlin.h" "stb_perlin.cpp")
target_link_libraries(stb_perlin stb)
add_library(stb_rect_pack "stb/stb_rect_pack.h" "stb_rect_pack.cpp")
target_link_libraries(stb_rect_pack stb)

3
external/stb/stb_image_write.cpp vendored Normal file
View File

@ -0,0 +1,3 @@
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb/stb_image_write.h"

3
external/stb/stb_rect_pack.cpp vendored Normal file
View File

@ -0,0 +1,3 @@
#define STB_RECT_PACK_IMPLEMENTATION
#include "stb/stb_rect_pack.h"