Configure a basic CMake library by glebm · Pull Request #34 · meshtastic/framework-portduino · GitHub
Skip to content

Configure a basic CMake library#34

Draft
glebm wants to merge 1 commit into
meshtastic:masterfrom
glebm:cmake-lib
Draft

Configure a basic CMake library#34
glebm wants to merge 1 commit into
meshtastic:masterfrom
glebm:cmake-lib

Conversation

@glebm

@glebm glebm commented Oct 6, 2024

Copy link
Copy Markdown

Provides 2 targets: Portduino::Portduino and Porduino::PortduinoMain

Can be used like so:

include(FetchContent)
FetchContent_Declare(Portduino
  GIT_REPOSITORY https://github.com/glebm/framework-portduino.git
  GIT_TAG ...
  EXCLUDE_FROM_ALL)
FetchContent_MakeAvailable(Portduino)

...

target_link_libraries(MyProject PRIVATE Portduino::Portduino)

Refs #33

@CLAassistant

CLAassistant commented Oct 6, 2024

Copy link
Copy Markdown

@glebm glebm force-pushed the cmake-lib branch 2 times, most recently from c9f1fb4 to 453fd2d Compare October 6, 2024 12:16
@glebm glebm mentioned this pull request Oct 6, 2024
@mverch67

Copy link
Copy Markdown
Collaborator

@fifieldt fifieldt marked this pull request as draft March 21, 2025 00:31
Provides 2 targets: `Portduino::Portduino` and `Porduino::PortduinoMain`

Can be used like so:

```cmake
include(FetchContent)
FetchContent_Declare(Portduino
  GIT_REPOSITORY https://github.com/glebm/framework-portduino.git
  GIT_TAG ...
  EXCLUDE_FROM_ALL)
FetchContent_MakeAvailable(Portduino)

...

target_link_libraries(MyProject PRIVATE Portduino::Portduino)

```
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