-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (29 loc) · 983 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
32
33
34
35
36
cmake_minimum_required(VERSION 3.29)
project(VRE)
set(CMAKE_CXX_STANDARD 20)
find_package(Vulkan REQUIRED)
include_directories(${Vulkan_INCLUDE_DIRS})
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(external/glfw)
file(GLOB_RECURSE LIB_SRC_FILES "lib_src/*.cpp")
file(GLOB_RECURSE LIB_INCLUDE_FILES "lib_includes/*.h")
add_library(VRE STATIC ${LIB_SRC_FILES} ${LIB_INCLUDE_FILES})
target_include_directories(VRE PUBLIC lib_includes)
target_link_libraries(VRE
PRIVATE
${Vulkan_LIBRARIES}
glfw)
add_executable(VRE_EMPTY_TEST
test/empty/main.cpp)
add_dependencies(VRE_EMPTY_TEST VRE)
target_link_libraries(VRE_EMPTY_TEST
VRE
glfw)
add_executable(VRE_TWO_WINDOWS_TEST
test/two_windows/main.cpp)
add_dependencies(VRE_TWO_WINDOWS_TEST VRE)
target_link_libraries(VRE_TWO_WINDOWS_TEST
VRE
glfw)