Skip to content

Conversation

@Melky-Phoe
Copy link

I've updated CMakeLists.txt. Now 'make install' will create a complete install structure and the library can be found by other projects by "find_package(modbuspp)"

Build example is added as an option because the example file caused errors on the build and I didn't need the example for the installation to work.

@PACKAGE_INIT@

include("${CMAKE_CURRENT_LIST_DIR}/modbusppTargets.cmake")
check_required_components("@PROJECT_NAME@") No newline at end of file
Copy link
Owner

Choose a reason for hiding this comment

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

[nit] please insert a new line

CMakeLists.txt Outdated
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.1)
project(modbuspp)
project(modbuspp VERSION 1.0.0)
Copy link
Owner

Choose a reason for hiding this comment

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

Usually version # > 1.0 means it is safe to enter production. I would following the release version to be 0.3

PUBLIC
.
)
IF(BUILD_EXAMPLE)
Copy link
Owner

Choose a reason for hiding this comment

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

Could you please update the README?

@fz-lyu
Copy link
Owner

fz-lyu commented Sep 22, 2022

Thanks for this PR!

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