2022-05-03 18:53:24 +02:00
|
|
|
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
|
2020-09-29 13:47:50 +02:00
|
|
|
|
|
|
|
project(stb CXX)
|
|
|
|
|
|
|
|
add_library(stb INTERFACE)
|
2021-06-14 17:44:59 +02:00
|
|
|
target_include_directories(stb SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
|
2020-09-29 13:47:50 +02:00
|
|
|
|
|
|
|
add_library(stb_image "stb/stb_image.h" "stb_image.cpp")
|
|
|
|
target_link_libraries(stb_image stb)
|
|
|
|
|
2021-04-08 21:42:11 +02:00
|
|
|
add_library(stb_image_write "stb/stb_image_write.h" "stb_image_write.cpp")
|
|
|
|
target_link_libraries(stb_image_write stb)
|
|
|
|
|
2021-12-11 23:55:00 +01:00
|
|
|
# lel TODO: add back in when patent expires
|
|
|
|
#add_library(stb_perlin "stb/stb_perlin.h" "stb_perlin.cpp")
|
|
|
|
#target_link_libraries(stb_perlin stb)
|
2020-09-29 13:47:50 +02:00
|
|
|
|
2021-04-08 21:42:11 +02:00
|
|
|
add_library(stb_rect_pack "stb/stb_rect_pack.h" "stb_rect_pack.cpp")
|
|
|
|
target_link_libraries(stb_rect_pack stb)
|
|
|
|
|