1 2 3 4
The package blpapi provides CMake targets: find_package(blpapi CONFIG REQUIRED) target_link_libraries(main PRIVATE blpapi)