-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
executable file
·64 lines (50 loc) · 1.3 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
cmake_minimum_required(VERSION 3.18)
project(XMakeProjectManager VERSION 8.0.0
DESCRIPTION "QtCreator XMake project support"
LANGUAGES CXX)
list(APPEND CMAKE_PREFIX_PATH "${QTC_BUILD_PATH}")
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(QtCreator COMPONENTS Core ExtensionSystem Utils REQUIRED)
find_package(Qt6 COMPONENTS Core Widgets REQUIRED)
file(GLOB_RECURSE
source_files
src/*.cpp
src/*.hpp
src/*.inl
)
file(GLOB_RECURSE
ui_files
src/*.ui
)
file(GLOB_RECURSE
assets_files
assets/*.lua
)
add_qtc_plugin(
${PROJECT_NAME}
PLUGIN_DEPENDS
QtCreator::Core
QtCreator::CppEditor
QtCreator::ProjectExplorer
QtCreator::QtSupport
PLUGIN_RECOMMENDS
QtCreator::Designer
QtCreator::LangageClient
DEPENDS
Qt::Core
Qt::Widgets
QtCreator::Core
QtCreator::ExtensionSystem
QtCreator::Utils
QtCreator::QmlJS
SOURCES
${source_files}
${ui_files}
${assets_files}
resources.qrc
)
#target_compile_options(${PROJECT_NAME} PUBLIC "/fsanitize=address")
target_include_directories(${PROJECT_NAME} PRIVATE src/)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)