libvgcode - Changes into CMakeLists.txt

This commit is contained in:
enricoturri1966 2024-02-22 09:49:15 +01:00 committed by Lukas Matena
parent 04d916a351
commit 0094ec8b09

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.8.12)
project(libvgcode)
add_library(libvgcode STATIC
set(LIBVGCODE_SOURCES
# API
include/ColorPrint.hpp
include/ColorRange.hpp
@ -50,5 +50,13 @@ add_library(libvgcode STATIC
glad/src/glad.c
)
add_library(libvgcode STATIC ${LIBVGCODE_SOURCES})
foreach(_source IN ITEMS ${LIBVGCODE_SOURCES})
get_filename_component(_source_path "${_source}" PATH)
string(REPLACE "/" "\\" _group_path "${_source_path}")
source_group("${_group_path}" FILES "${_source}")
endforeach()
# glad includes
include_directories(glad/include)