libosdp provides CMake targets:

  find_package(LibOSDP CONFIG REQUIRED)
  target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:libosdp::osdp>,libosdp::osdp,libosdp::osdpstatic>)

libosdp provides pkg-config modules:

  # Open Supervised Device Protocol (OSDP) Library
  libosdp
