Network Extension for iOS and MacOS with CMake for C++ application. How?

Hello all!

Trying to find any info about how to create iOS/MacOS application written with CMake/C++ within Network Extension. There are few questions:

  1. How to setup CMake project for correct application building with XCode?
  2. Is there any examples of it?

Some of details about XCode part covered in this thread But there are nothing about settings for CMake.