HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Building with MSVC or clang on Windows

Install requirements

For the best experience install Visual Studio before Visual Studio Code.

Setup Visual Studio

We offer a curated list of required Visual Studio components in .github\.vsconfig. You can import this file using the Visual Studio Installer.

Clone the HikoGUI project from github

Clone the HikoGUI repository on your machine:

git clone git@github.com:hikogui/hikogui.git

Building HikoGUI simple

Use the x64 Native Tools Command Prompt for VS 2022 Preview as the command prompt as it will configure the environment variables which are needed for CMake to build using MSVC or clang.

cd hikogui
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF ..
cmake --build .
cmake --install .

Building HikoGUI multi-config

Use the x64 Native Tools Command Prompt for VS 2022 Preview as the command prompt as it will configure the environment variables which are needed for CMake to build using MSVC or clang.

cd hikogui
mkdir build
cd build
# Optional: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang
cmake -G "Ninja Multi-Config" "-DCMAKE_INSTALL_PREFIX=../install" -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF ..
cmake --build . --config Debug
cmake --build . --config Release
cmake --build . --config RelWithDebInfo
cmake --install . --config Debug
cmake --install . --config Release
cmake --install . --config RelWithDebInfo