forked from hoffstadt/DearPyGui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
55 lines (45 loc) · 1.24 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
48
49
50
51
52
53
54
55
cmake_minimum_required (VERSION 3.13)
project ("DearPyGui")
# various settings
set(GLFW_BUILD_DOCS OFF)
add_definitions(
-D_CRT_SECURE_NO_WARNINGS
-D_USE_MATH_DEFINES
-DIMGUI_USER_CONFIG="mvImGuiConfig.h")
# can be set to 36, 37, 38, 39, or 0
# * 36 = Python 3.6
# * 37 = Python 3.7
# * 38 = Python 3.8
# * 39 = Python 3.9
# * 0 = Embedded Python
set(MVPY_VERSION ${MVPY_VERSION})
if(MVDPG_VERSION)
add_definitions(-DMV_SANDBOX_VERSION="${MVDPG_VERSION}")
else()
add_definitions(-DMV_SANDBOX_VERSION="master")
endif()
# when set to "ON", the embedded version
# will be the only version build (no sandbox builds)
set(MVDIST_ONLY ${MVDIST_ONLY})
if(MVDIST_ONLY)
add_definitions(-DMVDIST_ONLY)
endif()
if(NOT MVDIST_ONLY)
add_subdirectory ("ImguiTesting")
add_definitions(-DMV_LOG)
endif()
# version number of Dear PyGui, usually set
# by AppVeyor
set(MVDPG_VERSION ${MVDPG_VERSION})
# if this is not a distribution build
# build development environment
if(NOT MVDIST_ONLY)
add_subdirectory("Dependencies/spdlog")
add_subdirectory ("DearSandbox")
endif()
if(WIN32)
else() # Apple and Linux
add_subdirectory ("Dependencies/glfw")
endif()
add_subdirectory("Dependencies/freetype")
add_subdirectory ("DearPyGui")