libosdp provides CMake targets: find_package(LibOSDP CONFIG REQUIRED) target_link_libraries(main PRIVATE $,libosdp::osdp,libosdp::osdpstatic>) libosdp provides pkg-config modules: # Open Supervised Device Protocol (OSDP) Library libosdp