Project now buildable without Visual Studio on windows

VCPKG_ROOT environment variable needs to be set.
I had an issue with dumpbin not being found. I had to add it to my path as well.
This commit is contained in:
trotFunky 2019-11-01 18:22:43 +01:00
parent 2bfb8c2ad2
commit 89a627695c
2 changed files with 15 additions and 1 deletions

View file

@ -1,4 +1,13 @@
cmake_minimum_required(VERSION 3.14)
if(DEFINED ENV{VCPKG_ROOT})
set(VCPKG_TARGET_TRIPLET "x64-windows")
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
CACHE STRING "")
endif()
endif()
project(tests_opengl)
set(CMAKE_CXX_STANDARD 14)