From 2cbda6e7bea5133c427e24d37392bbe8813fce88 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Mon, 4 Mar 2024 12:41:12 +0100 Subject: [PATCH] qoi lib --- external/qoi/CMakeLists.txt | 8 +++----- external/qoi/qoi.cpp | 4 +++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/external/qoi/CMakeLists.txt b/external/qoi/CMakeLists.txt index e5bcdb7..dd74e10 100644 --- a/external/qoi/CMakeLists.txt +++ b/external/qoi/CMakeLists.txt @@ -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) diff --git a/external/qoi/qoi.cpp b/external/qoi/qoi.cpp index 4be5b34..2911b72 100644 --- a/external/qoi/qoi.cpp +++ b/external/qoi/qoi.cpp @@ -1 +1,3 @@ -// TODO: include and impl +#define QOI_IMPLEMENTATION +#include +