add_library(font-lib STATIC "") set(FONT_LIB_HEADERS psf.h ) set(FONT_LIB_SOURCES psf.cpp ) target_sources(font-lib PRIVATE ${FONT_LIB_SOURCES} PUBLIC FILE_SET HEADERS BASE_DIRS ${PROJECT_SOURCE_DIR} FILES ${FONT_LIB_HEADERS} )