ptc-print provides CMake targets: find_package(ptcprint) target_link_libraries(main PRIVATE ptcprint::ptcprint)