The package rcon is header only and can be used from CMake via: find_path(RCON_INCLUDE_DIRS "rcon.hpp") target_include_directories(main PRIVATE ${RCON_INCLUDE_DIRS})