-
Notifications
You must be signed in to change notification settings - Fork 33
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
move publisher and subscriber get_keyexpr implementation from impl.hxx to api.hxx #87
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
project(zenoh_foo) | ||
|
||
find_package(zenohc REQUIRED) | ||
find_package(zenohcxx REQUIRED) | ||
|
||
add_executable(foo main.cpp foo.cpp) | ||
target_link_libraries(foo zenohcxx::zenohc::lib) | ||
set_property(TARGET foo PROPERTY CXX_STANDARD 17) |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure what's the purpose of this additional .cpp file? Also all other files in project have .cxx extension There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A, ok, I see, that's to test the linker error on multiple include. Anyway better to mention this explicitly and do this in tests instead of examples. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include <iostream> | ||
#include <zenohc.hxx> | ||
|
||
#include "foo.hpp" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef FOO_HXX | ||
#define FOO_HXX | ||
|
||
#include "zenohc.hxx" | ||
|
||
#endif // FOO_HXX |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <iostream> | ||
|
||
#include <zenohc.hxx> | ||
|
||
#include "foo.hpp" | ||
|
||
int main() | ||
{ | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This mostly repeats functionality of tests https://github.com/eclipse-zenoh/zenoh-cpp/tree/main/examples/simple
Though I like the name 'standalone' and agree that example in 'simple' can be made a bit more simple