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