forked from Green-Sky/tomato
qoi lib
This commit is contained in:
parent
28b92b0f4c
commit
f4fe94dfe6
8
external/qoi/CMakeLists.txt
vendored
8
external/qoi/CMakeLists.txt
vendored
@ -2,12 +2,10 @@ cmake_minimum_required(VERSION 3.13...3.24 FATAL_ERROR)
|
|||||||
|
|
||||||
project(qoi C CXX)
|
project(qoi C CXX)
|
||||||
|
|
||||||
# do fetch or subtree
|
add_library(qoi_interface INTERFACE)
|
||||||
|
target_include_directories(qoi_interface SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
#add_library(stb INTERFACE)
|
|
||||||
#target_include_directories(stb SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
||||||
|
|
||||||
# static lib with impl
|
# static lib with impl
|
||||||
add_library(qoi "qoi.cpp")
|
add_library(qoi "qoi.cpp")
|
||||||
#target_link_libraries(qoi stb)
|
target_link_libraries(qoi qoi_interface)
|
||||||
|
|
||||||
|
4
external/qoi/qoi.cpp
vendored
4
external/qoi/qoi.cpp
vendored
@ -1 +1,3 @@
|
|||||||
// TODO: include and impl
|
#define QOI_IMPLEMENTATION
|
||||||
|
#include <qoi/qoi.h>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user