-
Notifications
You must be signed in to change notification settings - Fork 143
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
build: add cmake support #151
Conversation
Could you please explain why conan support is necessary? |
furthermore I'll add a C++ RAII wrapper in the folder contrib, this is optional e.g. default off at compile time, this MR is WIP |
7070f19
to
5dcaeef
Compare
lets add conan and wrapper in a next MR |
1091321
to
a7a1278
Compare
I like to have this a separate commit.
I'm not against this change, i only wanted to know why. The initial idea was a library, but from my understanding most of the user doesn't use the library to build an own application. They only use the example binaries. |
I’ll rebase and change the patch/commit message accordingly |
Are you really sure? Yes for end-users this might be true. But your library is included as lib in many projects! Not only my nodejs library is based on it, also volkzaehler project and others ... soI think it is more often used as library then as binaries ... ;-) |
a7a1278
to
42caa33
Compare
561baba
to
ed61769
Compare
My statement based on the Github issues, since i don't have statistics about the libmbus usage. Maybe you have a better overview about the usage. I only want to say that the "example" binaries are an important part of this project. |
I would rename but this can potential be done in a next MR, @lategoodbye is here anything else you need to have to get this merged? |
And that's fine. |
Since you introduce cmake, please try to take care of the other stuff like deb / RPM spec. Sorry, i'm not that cmake expert but it would be great to make maintaining easier. Btw i suggest to use the github URL instead of the rscada because we have the newer releases. |
this should pretty straight forward, can take on that.... |
In the long run, i don't want to maintain two build systems (except of Windows). So i appreciate a proper cut, if it's possible. |
I hope I get my windows fork working with all these changes ;-) might be a challenge ... we will see |
almost nothing changed -> added cmake scripts and |
@gocarlos basically as in https://github.com/rscada/libmbus/pull/133/files ;-) |
I don't found time till now to adjust to @lategoodbye 's wishes to get progress |
@lategoodbye could you review again? the docker images are here to create the rpm and deb files one is using another system e.g. mac or windows |
actually I changed the |
Co-Authored-By: Anonymous Maarten <[email protected]>
0d294a1
to
fffdca0
Compare
Co-Authored-By: Anonymous Maarten <[email protected]>
already 63 comments for a simple cmake script 🥇 👯 😄 |
Let's stop at 69 :3 😄 |
Co-Authored-By: Anonymous Maarten <[email protected]>
done |
@lategoodbye still something missing? |
Sorry, i didn't noticed that you are finished with the pull request. I really hate scripts which are impractical. Could you please make the second parameter optional and use ./_build/bin/mbus_parse_hex as default? This would make it behave as before. |
done |
Thanks |
Add_library in cmake is using the name libmbus, as linux uses lib prefix it produces liblibmbus set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "") |
Thanks again. I pushed 1e25cf1 |
No description provided.