forked from hoffstadt/DearPyGui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
48 lines (38 loc) · 1001 Bytes
/
CMakeLists.txt
File metadata and controls
48 lines (38 loc) · 1001 Bytes
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
cmake_minimum_required (VERSION 3.13)
project ("DearPyGui")
# variables set by the command line
# set(MV_CPP ON)
set(MV_CPP ${MV_CPP})
set(MVDIST_ONLY ${MVDIST_ONLY})
set(MV37DIST ${MV37DIST})
set(MVPY_VERSION ${MVPY_VERSION})
set(MVDPG_VERSION ${MVDPG_VERSION})
set(GLFW_BUILD_DOCS OFF)
add_definitions(-D_USE_MATH_DEFINES)
if(MVDPG_VERSION)
add_definitions(-DMV_SANDBOX_VERSION="${MVDPG_VERSION}")
else()
add_definitions(-DMV_SANDBOX_VERSION="master")
endif()
if(MVDIST_ONLY)
add_definitions(-DMVDIST_ONLY)
endif()
if(MV_CPP)
add_definitions(-DMV_CPP)
add_subdirectory ("DearSandboxCpp")
endif()
# include sub-projects.
add_subdirectory ("DearPyGui")
# if this is not a distribution build
# build development environment
if(NOT MVDIST_ONLY AND NOT MV_CPP)
add_subdirectory ("DearSandbox")
endif()
if(NOT MVDIST_ONLY)
add_subdirectory ("ImguiTesting")
endif()
if(WIN32)
# do nothing
else() # Apple or Linux
add_subdirectory ("Dependencies/glfw")
endif()