add_library(image-lib STATIC "" pixelarray.cpp pixelarray.h filters.cpp filters.h) set(IMAGE_LIB_HEADERS bmpimage.h ) set(IMAGE_LIB_SOURCES bmpimage.cpp ) target_sources(image-lib PRIVATE ${IMAGE_LIB_SOURCES} PUBLIC FILE_SET HEADERS BASE_DIRS ${PROJECT_SOURCE_DIR} FILES ${IMAGE_LIB_HEADERS} ) target_link_libraries(image-lib PUBLIC font-lib utils-lib )