ebpf-for-windows/packaging
Alessandro Gario 6a54714ec2
cmake: Add base targets (#882)
Signed-off-by: Alessandro Gario <alessandro.gario@gmail.com>
2022-04-26 05:39:37 -07:00
..
CMakeLists.txt cmake: Add base targets (#882) 2022-04-26 05:39:37 -07:00
README.md cmake: Add base targets (#882) 2022-04-26 05:39:37 -07:00

README.md

Packaging instructions

Prerequisits

The WiX toolset should be installed and reachable via PATH.

Configure the main project with -DEBPFFORWINDOWS_ENABLE_INSTALL=true

cmake -S . -B build -DEBPFFORWINDOWS_ENABLE_INSTALL=true

Build and install the project

Note that this will install ebpf-for-windows to the /Program Files/ebpf-for-windows directory. You can use the DESTDIR environment variable to override this.

cmake --build . --config Debug --target install

Configure the packaging project

The generator can either be:

  • WIX
  • NuGet
cmake -S packaging -B package -DEBPFFORWINDOWS_PROGRAM_DATA="C:\Program Files\ebpf-for-windows" -DEBPFFORWINDOWS_VERSION=1.0.0 -DCPACK_GENERATOR=WIX

Build the package

cmake --build package --target package