Skip to content

Instantly share code, notes, and snippets.

@ericoporto
Created June 20, 2020 22:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericoporto/6240f10240645cf59de28c44345df671 to your computer and use it in GitHub Desktop.
Save ericoporto/6240f10240645cf59de28c44345df671 to your computer and use it in GitHub Desktop.
CMake for Vulkan tutorial
cmake_minimum_required(VERSION 3.16)
project(vulkanLearning)
set(CMAKE_CXX_STANDARD 17)
find_package(Vulkan REQUIRED)
add_subdirectory(lib/glfw-3.3.2)
SET(GLM_TEST_ENABLE OFF CACHE BOOL "GLM Build unit tests")
add_subdirectory(lib/glm-0.9.9.6 EXCLUDE_FROM_ALL)
add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME} glfw ${GLFW_LIBRARIES} Vulkan::Vulkan GLM::GLM)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment