Advertisement
gwendal_

CMakeLists.txt

Feb 27th, 2021
397
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cmake_minimum_required(VERSION 3.17)
  2. project(CppTests)
  3.  
  4. set(CMAKE_CXX_STANDARD 20)
  5.  
  6. find_package(glfw3 3.3 REQUIRED)
  7. find_package(Vulkan REQUIRED)
  8. find_package(X11 REQUIRED)
  9.  
  10. link_libraries(${X11_LIBRARIES})
  11. add_definitions(-DVK_USE_PLATFORM_XLIB_KHR)
  12.  
  13. add_executable(CppTests GameEngine.cpp GameEngine.h)
  14.  
  15. target_link_libraries(CppTests glfw Vulkan::Vulkan)
Advertisement
RAW Paste Data Copied
Advertisement