-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (24 loc) · 1008 Bytes
/
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
cmake_minimum_required(VERSION 3.25)
file(GLOB_RECURSE ENGINE_FILES src/Engine/*.cpp src/Engine/*.h src/Engine/*.c)
project(Belegarbeit)
project(VulkanRenderer)
file(GLOB_RECURSE SOURCE_FILES src/Vulkan/*.cpp src/Vulkan/*.h src/Vulkan/*.c)
find_package(glfw3)
find_package(Gem)
find_package(Nuc)
find_package(stb)
find_package(VulkanHeaders)
find_package(VulkanLoader)
find_package(vulkan-memory-allocator)
find_package(glm)
add_executable(VulkanRenderer src/Vulkan/main.cpp ${ENGINE_FILES} ${SOURCE_FILES})
target_link_libraries(VulkanRenderer glfw glm::glm Gem Nuc Vulkan::Loader vulkan-headers::vulkan-headers vulkan-memory-allocator::vulkan-memory-allocator stb::stb)
project(OpenGLRenderer)
file(GLOB_RECURSE SOURCE_FILES src/OpenGL/*.cpp src/OpenGL/*.h src/OpenGL/*.c)
find_package(glfw3)
find_package(Gem)
find_package(Nuc)
find_package(glad)
find_package(glm)
add_executable(OpenGLRenderer ${SOURCE_FILES} ${ENGINE_FILES})
target_link_libraries(OpenGLRenderer glm::glm glfw Gem Nuc glad::glad)