Skip to content

Building

Matthew Smit edited this page Nov 29, 2019 · 4 revisions

Build Requirements

  • CMake 3.8+
  • llvm 8
  • Vulkan SDK 1.1.121.0+
  • gsl
  • glslang
  • glm

Using vcpkg

  1. Install CMake

  2. Install vcpkg

  3. Install Vulkan SDK. Ensure the environmental variable VULKAN_SDK points to this directory.

  4. Install vcpkg packages

    1. If Windows x64: vcpkg install llvm:x64-windows ms-gsl:x64-windows glm:x64-windows glslang:x64-windows vulkan:x64-windows
    2. Otherwise: ./vcpkg install llvm ms-gsl glm glslang vulkan
  5. Create CPVulkan project.

     mkdir build
     cd build
     cmake .. -DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake
    
  6. Build

    1. If Visual Studio: Open CPVulkan.sln and build.
    2. If Make: make -j4
  7. See usage

Clone this wiki locally