-
Notifications
You must be signed in to change notification settings - Fork 21
/
CMakeOptions.cmake
47 lines (38 loc) · 1.39 KB
/
CMakeOptions.cmake
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
#
# ImGui Options
#
cmake_minimum_required(VERSION 3.15)
##################################################################################################################
# OPTIONS
##################################################################################################################
option(IMGUI_STATIC_LIBRARY
"Set to OFF to build as shared library."
ON
)
option(IMGUI_WITH_BACKEND
"Set to OFF to not include backend files."
OFF
)
# TODO: Validate configurations based on the given input combination
# TODO: Add support for other platforms WIN32, SDL, GLFW, GLUT, ANDROID, APPLE, ALLEGRO5
set(IMGUI_BACKEND_PLATFORM "WIN32" CACHE STRING "")
##################################################################################################################
# DEPENDENT OPTIONS
##################################################################################################################
include(CMakeDependentOption)
cmake_dependent_option(IMGUI_BACKEND_DX9
"Set to ON to include DX9 backend files." OFF
"IMGUI_WITH_BACKEND" ON
)
cmake_dependent_option(IMGUI_BACKEND_DX10
"Set to ON to include DX10 backend files." OFF
"IMGUI_WITH_BACKEND" ON
)
cmake_dependent_option(IMGUI_BACKEND_DX11
"Set to ON to include DX11 backend files." OFF
"IMGUI_WITH_BACKEND" ON
)
cmake_dependent_option(IMGUI_BACKEND_DX12
"Set to ON to include DX12 backend files." OFF
"IMGUI_WITH_BACKEND" ON
)