libe57format provides CMake targets: find_package(E57Format CONFIG REQUIRED) target_link_libraries(main PRIVATE E57Format)