/webview_cpp

Webview C++17 example (Linux, MacOS, Windows)

Primary LanguageCMakeMIT LicenseMIT

Webview_cpp

An example CMake project to build cross-platform (Linux and Windows) C++17 applications using a webview frontend.

Table of Contents

Linux

Requirements

  • The web content engine library for GTK
# installation on Ubuntu based distributions
sudo apt-get install libwebkit2gtk-4.0-dev

Building and running

Open the root CMakeLists.txt in CLion. Then the project can be built with Ctrl+F9 and run with Shift+F10.

MacOS

Requirements

  • CMake
  • WebKit framework (should come preinstalled)

Building and running

Todo: instructions

Windows

Requirements

  • NuGet Commandline
    • Make sure you add the path to the executable to %PATH% in the environment variables.
  • Visual Studio 2022 with the Desktop development with C++ workload installed. Also, make sure you select C++ CMake for Windows as sub-option of this workload.

Building and running

Simply open this folder in Visual Studio 2022. Then right click on the root CMakeLists.txt and select Set as startup item. Next you should be able to build the project with Ctrl+B and run it with Ctrl+F5.