The package vili provides CMake targets: find_package("vili" CONFIG REQUIRED) target_link_libraries("main" PRIVATE "vili::vili")