Skip to content

build: Add missing root CMakeLists.txt for P-Net and OSAL configuration#593

Open
Spacecast3r wants to merge 1 commit intortlabs-com:publicfrom
Spacecast3r:Spacecast3r
Open

build: Add missing root CMakeLists.txt for P-Net and OSAL configuration#593
Spacecast3r wants to merge 1 commit intortlabs-com:publicfrom
Spacecast3r:Spacecast3r

Conversation

@Spacecast3r
Copy link
Copy Markdown

Hello!

While trying to build the P-Net stack following the instructions in the README.md, I noticed that the root CMakeLists.txt was missing from the repository, causing the cmake -B build -S p-net command to fail.

This Pull Request introduces the missing top-level CMakeLists.txt to restore the build process and make it compliant with the documentation.

Changes included in this PR:

  • Configured the profinet project and the default PNET_OPTION_* and PNET_MAX_* settings.
  • Added dynamic generation for pnet_options.h and pnet_version.h.
  • Implemented automatic download and building of cmake-tools and OSAL via FetchContent (matching the "Automatic download and build of OSAL" behavior described in the docs).
  • Added the install target to properly export the static library, headers, and the scripts inside the tools/ folder.

Let me know if any adjustments are needed. Thank you!

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Feb 23, 2026

CLA assistant check
All committers have signed the CLA.

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.

2 participants