Open philipp-schmidt opened 1 month ago
Linking against the static target seems to not work either:
# tritonclient
find_package(TritonCommon REQUIRED)
find_package(TritonClient REQUIRED)
...
target_link_libraries(test PRIVATE TritonClient::grpcclient_static rt m dl)
CMake Error at CMakeLists.txt:43 (add_executable):
Target "test" links to target "gRPC::grpc++" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:43 (add_executable):
Target "test" links to target "gRPC::grpc" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?
CMake Error at CMakeLists.txt:43 (add_executable):
Target "test" links to target "protobuf::libprotobuf" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Neither find_package() nor FetchContent work out of the box for a standalone c++ cmake app.
find_package
Compile tritonclient manually and set CMAKE_PREFIX_PATH to the install folder. Alternatively install tritonclient globally. In any case, the following minimal cmake fails:
FetchContent
What is the recommended way to create a standalone app with tritonclient dependency currently? It seems that for find_package the link targets are broken and for FetchContent there is no support at all because no targets are exported.