cmake_minimum_required(VERSION 3.25.1) project(test) include_directories(lib/) add_library(printer STATIC lib/printer.h lib/printer.cpp) add_executable(main src/main.cpp) target_link_libraries(main printer)