This commit is contained in:
Green Sky 2024-03-04 12:41:12 +01:00
parent 029df21423
commit 2cbda6e7be
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View File

@ -2,12 +2,10 @@ cmake_minimum_required(VERSION 3.13...3.24 FATAL_ERROR)
project(qoi C CXX)
# do fetch or subtree
#add_library(stb INTERFACE)
#target_include_directories(stb SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
add_library(qoi_interface INTERFACE)
target_include_directories(qoi_interface SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
# static lib with impl
add_library(qoi "qoi.cpp")
#target_link_libraries(qoi stb)
target_link_libraries(qoi qoi_interface)

View File

@ -1 +1,3 @@
// TODO: include and impl
#define QOI_IMPLEMENTATION
#include <qoi/qoi.h>