The package llfio provides two CMake targets: find_package(llfio CONFIG REQUIRED) - If you want the header-only form of LLFIO: find_package(Threads REQUIRED) target_link_libraries(main PUBLIC llfio::hl) - If you want the static library form of LLFIO with static NT kernel error code category: target_link_libraries(main PUBLIC llfio::sl llfio::ntkernel-error-category::sl)