-
Notifications
You must be signed in to change notification settings - Fork 21
/
CMakeLists.txt
82 lines (68 loc) · 2.61 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
cmake_minimum_required(VERSION 3.19)
if(NOT "$ENV{PRODUCT_NAME}" STREQUAL "")
project($ENV{PRODUCT_NAME} LANGUAGES C CXX ASM)
else()
project("Graphia" LANGUAGES C CXX ASM)
endif()
find_package(Qt6 COMPONENTS REQUIRED Core)
qt_standard_project_setup(REQUIRES 6.5)
include_directories(source)
add_subdirectory(source/thirdparty)
add_subdirectory(source/shared)
add_subdirectory(source/plugins)
add_subdirectory(source/app)
if(NOT EMSCRIPTEN)
add_subdirectory(source/crashreporter)
add_subdirectory(source/messagebox)
add_subdirectory(source/updater)
add_subdirectory(source/updater/editor)
endif()
# The following sections are only here so that the files are available
# for selection/editing in the IDE (if it supports it); nothing is
# actually built
list(APPEND MISC
${CMAKE_CURRENT_LIST_DIR}/scripts/defaults.bat
${CMAKE_CURRENT_LIST_DIR}/scripts/defaults.sh
${CMAKE_CURRENT_LIST_DIR}/scripts/linux-build.sh
${CMAKE_CURRENT_LIST_DIR}/scripts/macos-build.sh
${CMAKE_CURRENT_LIST_DIR}/scripts/wasm-build.sh
${CMAKE_CURRENT_LIST_DIR}/scripts/wasm-deploy.sh
${CMAKE_CURRENT_LIST_DIR}/scripts/windows-build.bat
)
list(APPEND MISC
${CMAKE_CURRENT_LIST_DIR}/scripts/clang-tidy.sh
${CMAKE_CURRENT_LIST_DIR}/scripts/clazy.sh
${CMAKE_CURRENT_LIST_DIR}/scripts/cloc.sh
${CMAKE_CURRENT_LIST_DIR}/scripts/cppcheck.cfg
${CMAKE_CURRENT_LIST_DIR}/scripts/cppcheck.sh
${CMAKE_CURRENT_LIST_DIR}/scripts/emsdk-version-for-qt-version.sh
${CMAKE_CURRENT_LIST_DIR}/scripts/iwyu.sh
${CMAKE_CURRENT_LIST_DIR}/scripts/parse-compile_commands-json.sh
${CMAKE_CURRENT_LIST_DIR}/scripts/qmllint.sh
${CMAKE_CURRENT_LIST_DIR}/scripts/upload-symbols.sh
)
list(APPEND MISC
${CMAKE_CURRENT_LIST_DIR}/installers/linux/build.sh
${CMAKE_CURRENT_LIST_DIR}/installers/macos/build.sh
${CMAKE_CURRENT_LIST_DIR}/installers/wasm/build.sh
${CMAKE_CURRENT_LIST_DIR}/installers/windows/build.bat
${CMAKE_CURRENT_LIST_DIR}/installers/windows/installer.nsi
)
list(APPEND MISC
${CMAKE_CURRENT_LIST_DIR}/.github/workflows/build.yml
)
list(APPEND MISC
${CMAKE_CURRENT_LIST_DIR}/misc/gdbVisualiser.py
${CMAKE_CURRENT_LIST_DIR}/misc/MacOSXBundleInfo.plist.in
)
list(APPEND MISC
${CMAKE_CURRENT_LIST_DIR}/Doxyfile
${CMAKE_CURRENT_LIST_DIR}/LICENSE
${CMAKE_CURRENT_LIST_DIR}/README.md
${CMAKE_CURRENT_LIST_DIR}/.clang-format
${CMAKE_CURRENT_LIST_DIR}/.clang-tidy
${CMAKE_CURRENT_LIST_DIR}/.gitignore
)
add_custom_target(Misc SOURCES ${MISC})
list(REMOVE_DUPLICATES QML_IMPORT_PATH)
set(QML_IMPORT_PATH ${QML_IMPORT_PATH} CACHE STRING "Qt Creator import paths" FORCE)