-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
56 lines (45 loc) · 1.85 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
56
cmake_minimum_required(VERSION 3.26)
# set cmake include path
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(cmake/uipc_utils.cmake)
# =========================================================================
# Project Version
# =========================================================================
set(UIPC_VERSION_MAJOR 0)
set(UIPC_VERSION_MINOR 9)
set(UIPC_VERSION_PATCH 0)
# =========================================================================
# Project Options
# =========================================================================
option(UIPC_USING_LOCAL_VCPKG "Using local vcpkg" ON)
option(UIPC_BUILD_GUI "Build GUI, turn it off if you're server only" OFF)
option(UIPC_BUILD_PYBIND "Build pyuipc" OFF)
option(UIPC_BUILD_TORCH_EXTENSION "Build pytorch extension" OFF)
option(UIPC_BUILD_EXAMPLES "Build examples" ON)
option(UIPC_BUILD_TESTS "Build tests" ON)
option(UIPC_BUILD_BENCHMARKS "Build benchmarks" ON)
option(UIPC_DEV_MODE "Enable developer mode" OFF)
# =========================================================================
# Backend Options
# =========================================================================
option(UIPC_WITH_CUDA_BACKEND "Build with CUDA backend" ON)
# =========================================================================
# Show Logo and Options
# =========================================================================
uipc_show_logo()
uipc_show_options()
uipc_config_vcpkg_install()
# =========================================================================
#
# Libuipc Project
#
# =========================================================================
project(uipc)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Generate compile_commands.json
# dependencies
add_subdirectory(external)
# uipc
add_subdirectory(src)
# apps
add_subdirectory(apps)