-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
55 lines (48 loc) · 2.59 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.16)
project(nui VERSION 0.10.2)
set(NUI_SOURCE_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} CACHE INTERNAL "NUI source directory")
include(${CMAKE_CURRENT_LIST_DIR}/cmake/common.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/options.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/static_analyzers.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/inline_extractor.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/boostpp.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/mplex.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/interval_tree.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/fmt.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/describe.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/mp11.cmake)
if (EMSCRIPTEN)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/libcpppre.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/frontend/emscripten.cmake)
else()
if (${NUI_ENABLE_TESTS})
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/libcpppre.cmake)
endif()
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/tools/bin2hpp)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/tools/patch_acorn)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/tools/parcel_adapter)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/tools/patch_emscripten_config)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/tools/patch_dotenv)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/tools/inline_parser)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/tools/inline_injector)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/tools/webview_uuid)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/binaryen.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/emscripten.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/nlohmann_json.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/portable_file_dialog.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/webview.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/roar.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/backend/common.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/backend/emscripten.cmake)
endif()
# Submodules
# Project Native
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/nui/src/nui)
if (${NUI_ENABLE_TESTS})
enable_testing()
include(${CMAKE_CURRENT_LIST_DIR}/cmake/dependencies/gtest.cmake)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/nui/test/nui)
endif()
if (${NUI_BUILD_EXAMPLES})
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/examples)
endif()