add stb
This commit is contained in:
parent
87d7eb69af
commit
d725ed8cd0
2
external/CMakeLists.txt
vendored
2
external/CMakeLists.txt
vendored
@ -15,3 +15,5 @@ add_subdirectory(./solanaceae_tox)
|
||||
add_subdirectory(./sdl)
|
||||
add_subdirectory(./imgui)
|
||||
|
||||
add_subdirectory(./stb)
|
||||
|
||||
|
13
external/stb/CMakeLists.txt
vendored
Normal file
13
external/stb/CMakeLists.txt
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
|
||||
|
||||
project(stb C CXX)
|
||||
|
||||
add_library(stb INTERFACE)
|
||||
target_include_directories(stb SYSTEM 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)
|
||||
|
3
external/stb/stb_image.cpp
vendored
Normal file
3
external/stb/stb_image.cpp
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include "stb/stb_image.h"
|
||||
|
3
external/stb/stb_image_write.cpp
vendored
Normal file
3
external/stb/stb_image_write.cpp
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
#include "stb/stb_image_write.h"
|
||||
|
Loading…
Reference in New Issue
Block a user