Skip to content

CMakeLists.txt install library#25

Open
Melky-Phoe wants to merge 8 commits intofz-lyu:masterfrom
bringauto:master
Open

CMakeLists.txt install library#25
Melky-Phoe wants to merge 8 commits intofz-lyu:masterfrom
bringauto:master

Conversation

@Melky-Phoe
Copy link
Copy Markdown

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
Copy Markdown
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

Comment thread CMakeLists.txt Outdated
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.1)
project(modbuspp)
project(modbuspp VERSION 1.0.0)
Copy link
Copy Markdown
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

Comment thread CMakeLists.txt
PUBLIC
.
)
IF(BUILD_EXAMPLE)
Copy link
Copy Markdown
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
Copy Markdown
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