-
Notifications
You must be signed in to change notification settings - Fork 2
/
cmake.toml
35 lines (30 loc) · 820 Bytes
/
cmake.toml
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
[cmake]
version = "3.15"
cmkr-include = "cmake/cmkr.cmake"
[project]
name = "Qt5CMakeTemplate"
version = "0.1.0"
description = "Simple template for Qt5 to get you started"
include-after = ["cmake/Qt5Helpers.cmake"]
[find-package]
Qt5 = { components = ["Widgets"] }
[target.MyApplication]
type = "executable"
sources = [
"MyApplication/main.cpp",
"MyApplication/MainWindow.cpp",
"MyApplication/MainWindow.h",
"MyApplication/MainWindow.ui",
"MyApplication/resource.qrc",
]
link-libraries = ["Qt5::Widgets"]
msvc.link-options = ["/SUBSYSTEM:WINDOWS"]
cmake-after = """
# Enable Qt moc/rrc/uic support
target_qt(${CMKR_TARGET})
# Copy Qt DLLs next to the application
target_windeployqt(${CMKR_TARGET})
"""
[[install]]
targets = ["MyApplication"]
destination = "bin"