Makers Blog

How to build a simple “Hello PLCnext” C++ application using modern CMake

Dzmitry Ivaniuk 02 November 2021 min. read
378 views 1 comments


The Makers Blog shows applications and user stories of community members that are not tested or reviewed by Phoenix Contact. Use them at your own risk.


Please login/register to comment


Leave a Reply

Martin PLCnext Team 24.11.2021

This is very useful. I understand that the `preset` feature was added in a relatively recent version of CMake. Is it possible to use this feature with the version of CMake that is included with the PLCnext CLI tool version 2021.6? If not, when is then planned?

Login / Register to reply
Dzmitry Ivaniuk 06.01.2022

CMake `presets` starts from CMake version 3.19, from the version 3.21 `CMakePresets.json` has version 3 ( The PLCnext CLI tool calls CMake (during build process), so this feature can make it easier to configure CMake.

Never miss a new article
Sign up for the newsletter
Never miss news about PLCnext Technology
Get interesting content via newsletter four times a year
Receive exclusive information before all other users