/cmake-jmeter

Windows installer for Apache JMeter

Primary LanguageCMakeApache License 2.0Apache-2.0

Apache JMeter installer

This is a CMake project to build a Windows installer for Apache JMeter. The installer is used by the DEVCOM.JMeter winget package. You can install it with the following command:

winget install --id DEVCOM.JMeter

Build prerequisites

You can install the first two components with the following winget commands:

winget install --id Kitware.CMake
winget install --id Ninja-build.Ninja

WiX v3 is available at https://github.com/wixtoolset/wix3/releases/. It requires .NET Framework 3.5, which can be installed with the following command:

Start-Process `
    -FilePath pwsh `
    -ArgumentList "-Command `"& {Enable-WindowsOptionalFeature -Online -FeatureName NetFx3}`"" `
    -Wait `
    -Verb RunAs

Check if PATH was set correctly:

Get-Command cmake
Get-Command ninja

You may need to restart your Windows session if you can't find ninja even after restarting your terminal.

Build

Use the following commands to generate the installation package:

cmake -B build -G Ninja
cmake --build build --target package

You need Internet access to execute the build process to download the Apache JMeter binaries.

If successful, the MSI file will be available in the build directory.