-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (31 loc) · 1.05 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cmake_minimum_required(VERSION 3.7 FATAL_ERROR)
project(vulkan-study VERSION 0.0.1)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package(Vulkan REQUIRED)
#find_package(glfw REQUIRED)
# add_executable(vulkan-study
# src/main.cpp
# inc/init.hpp
# src/init.cpp
# )
add_executable(vulkan-engine
src/test.cpp
src/Window.cpp
src/Instance.cpp
src/Engine.cpp
src/PhysicalDevice.cpp
src/QueueFamily.cpp
src/Device.cpp
src/Surface.cpp
)
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
add_subdirectory(lib/glfw/)
#target_link_libraries(vulkan-study glfw Vulkan::Vulkan )
target_link_libraries(vulkan-engine glfw Vulkan::Vulkan )
target_include_directories(vulkan-engine PRIVATE lib/glfw/include/)
# set_property(TARGET vulkan-study PROPERTY CXX_STANDARD 17)
# set_property(TARGET vulkan-study PROPERTY CXX_STANDARD_REQUIRED ON)
set_property(TARGET vulkan-engine PROPERTY CXX_STANDARD 17)
set_property(TARGET vulkan-engine PROPERTY CXX_STANDARD_REQUIRED ON)