-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
56 lines (48 loc) · 1.43 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.10)
project(SIGBUILD LANGUAGES CXX VERSION 0.5.0)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_CXX_STANDARD 17)
find_package(QtCreator REQUIRED COMPONENTS Core)
find_package(QtCreator REQUIRED COMPONENTS ProjectExplorer)
find_package(Qt6 REQUIRED COMPONENTS Widgets)
find_package(Qt6 REQUIRED COMPONENTS Multimedia)
# Add a CMake option that enables building your plugin with tests.
# You don't want your released plugin binaries to contain tests,
# so make that default to 'NO'.
# Enable tests by passing -DWITH_TESTS=ON to CMake.
option(WITH_TESTS "Builds with tests" NO)
if(WITH_TESTS)
# Look for QtTest
find_package(Qt6 REQUIRED COMPONENTS Test)
# Tell CMake functions like add_qtc_plugin about the QtTest component.
set(IMPLICIT_DEPENDS Qt::Test)
# Enable ctest for auto tests.
enable_testing()
endif()
add_qtc_plugin(SIGBUILD
PLUGIN_DEPENDS
QtCreator::Core
QtCreator::ProjectExplorer
DEPENDS
Qt6::Multimedia
Qt6::Widgets
SOURCES
res/resources.qrc
src/BuildData.h
src/BuildData.cpp
src/DialogLastBuild.h
src/DialogLastBuild.cpp
src/DialogSessionBuilds.h
src/DialogSessionBuilds.cpp
src/OptionsPageMain.h
src/OptionsPageMain.cpp
src/OptionsPageMainWidget.h
src/OptionsPageMainWidget.cpp
src/Settings.h
src/Settings.cpp
src/SigbuildDefines.h
src/SigbuildPlugin.h
src/SigbuildPlugin.cpp
)