Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ def package_info(self):
self.cpp_info.components["viamapi"].sharedlinkflags.append(whole_archive)

self.cpp_info.components["viamsdk"].requires.extend([
"viamapi",
"boost::headers",
"boost::log",
"grpc::grpc++_reflection",
"protobuf::libprotobuf",
"xtensor::xtensor",

"viamapi",
"viam_rust_utils",
"abseil::absl_strings",
])
Expand Down
1 change: 1 addition & 0 deletions src/viam/examples/modules/complex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ target_include_directories(complex_module_sources
)
target_link_libraries(complex_module_sources
viam-cpp-sdk::viamsdk
viam-cpp-sdk::viamapi
)

add_executable(complex_module)
Expand Down
6 changes: 3 additions & 3 deletions src/viam/sdk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ add_library(viam-cpp-sdk::viamsdk ALIAS viamsdk)
# `BASE_DIRS` below, because otherwise we will pull in the static
# versions of the proto files even if we are generating dynamically.
target_include_directories(viamsdk
PUBLIC
PRIVATE
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

"$<BUILD_INTERFACE:$<TARGET_PROPERTY:viam-cpp-sdk::viamapi,INTERFACE_INCLUDE_DIRECTORIES>>"
)

Expand Down Expand Up @@ -234,9 +234,9 @@ target_link_directories(viamsdk
)

if (BUILD_SHARED_LIBS)
target_link_libraries(viamsdk PUBLIC viam-cpp-sdk::viamapi)
target_link_libraries(viamsdk PRIVATE viam-cpp-sdk::viamapi)
else()
target_link_libraries(viamsdk PUBLIC "$<LINK_LIBRARY:WHOLE_ARCHIVE,viam-cpp-sdk::viamapi>")
target_link_libraries(viamsdk PRIVATE "$<LINK_LIBRARY:WHOLE_ARCHIVE,viam-cpp-sdk::viamapi>")
endif()

target_link_libraries(viamsdk
Expand Down
6 changes: 6 additions & 0 deletions src/viam/sdk/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@ target_sources(viamsdk_test
test_utils.cpp
)

target_include_directories(viamsdk_test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it a goal to eventually make the tests not know about viamapi either, or, considered harmless?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think doable but considered harmless!

PUBLIC
"$<BUILD_INTERFACE:$<TARGET_PROPERTY:viam-cpp-sdk::viamapi,INTERFACE_INCLUDE_DIRECTORIES>>"
)

target_link_libraries(viamsdk_test
PUBLIC viam-cpp-sdk::viamsdk
PUBLIC viam-cpp-sdk::viamapi
)

viamcppsdk_add_boost_test(test_arm.cpp)
Expand Down
Loading