We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d011f55 commit 708c9aaCopy full SHA for 708c9aa
README.md
@@ -15,6 +15,22 @@ API Documentation: http://wjwwood.github.io/serial/doc/1.1.0/index.html
15
This fork has replaced the previous build setup in order to successfully build with no extra dependencies.
16
Build it as any other regular CMake project.
17
18
+#### Usage with CMake FetchContent
19
+
20
+```cmake
21
+set(SERIAL_BUILD_EXAMPLES OFF)
22
+FetchContent_Declare(
23
+ serial
24
+ GIT_REPOSITORY https://github.com/markaren/serial.git
25
+ GIT_TAG <git_tag_or_commit_id>
26
+)
27
+FetchContent_MakeAvailable(serial)
28
29
+...
30
31
+target_link_libraries(<target> PRIVATE serial)
32
+```
33
34
### License
35
36
[The MIT License](LICENSE)
0 commit comments