Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSDK-7642 - add simple module client for module integration testing #250

Merged
merged 5 commits into from
Jun 25, 2024

Conversation

stuqdog
Copy link
Member

@stuqdog stuqdog commented Jun 20, 2024

Creates a simple module client for use in module integration tests.

@stuqdog stuqdog requested a review from a team as a code owner June 20, 2024 18:21
@stuqdog stuqdog requested review from njooma and lia-viam and removed request for a team June 20, 2024 18:21
@@ -25,3 +25,18 @@ install(
TARGETS simple_module
COMPONENT examples
)

add_executable(simple_module_client)
target_sources(simple_module_client
Copy link
Contributor

Choose a reason for hiding this comment

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

just for my own curiosity is there a reason we do it this way (also for add_library calls in the sdk) instead of just add_executable(simple_module_client client.cpp)

Copy link
Member

Choose a reason for hiding this comment

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

That's my doing. I like being consistent about using the target_xyz calls to affect the target rather than having some of them apply at the declaration and others (e.g. target_link_libraries) be called for side effects. Since target_sources works like target_link_libraries I used it consistently everywhere, and left the add_executable and add_library calls are purely introducing the name with no side effects.

Copy link
Contributor

Choose a reason for hiding this comment

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

cool that makes sense!

@stuqdog stuqdog merged commit 5461780 into viamrobotics:main Jun 25, 2024
3 checks passed
@stuqdog stuqdog deleted the add-simple-module-client branch June 25, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants