-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
47 lines (35 loc) · 1.51 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
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
include("cmake/defaults.cmake")
set(NAME OpenXRExamples)
# Dependency management
include(${CMAKE_SOURCE_DIR}/cmake/ezvcpkg/ezvcpkg.cmake)
ezvcpkg_fetch(
REPO jherico/vcpkg
COMMIT 7d90f94da
#PACKAGES assimp basisu fmt glad glm glfw3 imgui openxr-loader vulkan magnum "magnum-plugins[tinygltfimporter]"
PACKAGES assimp basisu fmt glad glm glfw3 imgui openxr-loader vulkan magnum
UPDATE_TOOLCHAIN
USE_HOST_VCPKG
SAVE_BUILD
)
project(${NAME})
if (NOT "${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
message( FATAL_ERROR "Only 64 bit builds supported." )
endif()
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include("cmake/compiler.cmake")
find_package(Threads REQUIRED)
if (NOT ANDROID)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_SOURCE_DIR}/bin")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${CMAKE_SOURCE_DIR}/bin_debug")
set(CMAKE_DEBUG_POSTFIX "d")
add_custom_target(SetupRelease ALL ${CMAKE_COMMAND} -E make_directory ${CMAKE_SOURCE_DIR}/bin)
set_target_properties(SetupRelease PROPERTIES FOLDER "CMakeTargets")
add_custom_target(SetupDebug ALL ${CMAKE_COMMAND} -E make_directory ${CMAKE_SOURCE_DIR}/bin_debug)
set_target_properties(SetupDebug PROPERTIES FOLDER "CMakeTargets")
endif()
setup_qt(Gui Qml Quick QuickControls2 3DCore 3DExtras 3DQuick)
add_subdirectory(data/shaders)
add_subdirectory(src/common)
add_subdirectory(src/examples)