-
Notifications
You must be signed in to change notification settings - Fork 73
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
CMakeLists doesn't build a library #72
Comments
Hi, the CMakeLists in the repo was never meant to be used by the user, really is there just to build the various test/examples that were useful to me during development. |
How about supporting both approaches? |
No reason really, I just think that dropping the sources in the codebase is the simplest option. Anyway, if you find it useful, I will add a couple of lines in the CMakeLists to build a library. |
Added library target in a1705c0 |
I really appreciate your quick feedback. |
Great! I can't test it right now, but if i include the subdirectory using add_subdirectory call, it will also create all the extra libraries right? or even better (in my opionin) move the nanomodbus.h file to a folder called |
The CMakeLists is now used to create a few executables with different settings.
It can't however be used as a static library right now which is usefull for embedded devices.
being able to do
in our main projects CMakeLists.txt would be ideal for our scenario.
To be able to do this requires some change to the current CMakeLists.txt. If anyone's interested i can make a pull request.
If i do this i would also prefer to move the nanomodbus.h to a include folder.
The text was updated successfully, but these errors were encountered: