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:
Teo-CD 2019-11-01 18:22:43 +01:00
parent 442020f271
commit f8d39c48a0
2 changed files with 15 additions and 1 deletions

View file

@ -1,4 +1,13 @@
cmake_minimum_required(VERSION 3.14) 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) project(tests_opengl)
set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD 14)

View file

@ -20,7 +20,12 @@ As this project evolves I am thinking more and more about making it a "complete"
- [ ] Detect key press' edges ? - [ ] Detect key press' edges ?
- [ ] Switch from GLUT to GLFW - [ ] Switch from GLUT to GLFW
## Dependencies ## Building
The windows build supports only supports the `vcpkg` package manager. You can either import the project directly in Visual Studio or use another IDE.
In order to use another IDE with vcpkg, make sure of the following:
- `VCPKG_ROOT` is an environment variable and correctly points at the root of your vcpkg install.
### Dependencies
The following libraries must be installed and findable by CMake: The following libraries must be installed and findable by CMake:
- OpenGL - OpenGL