-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (43 loc) · 921 Bytes
/
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
cmake_minimum_required(VERSION 3.16)
project(hddtest VERSION 1.0 LANGUAGES C CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
include(GNUInstallDirs)
set(CMAKE_AUTOUIC ON)
find_package(QT NAMES Qt5 Qt6 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui Widgets Xml)
qt_add_resources(RESOURCES resource.qrc)
add_executable(hddtest
about.cpp
about.ui
definitions.cpp
device.cpp
file.cpp
filerw.cpp
filestructure.cpp
hddtest.cpp
hddtest.ui
main.cpp
randomgenerator.cpp
readblock.cpp
readcont.cpp
readrnd.cpp
seeker.cpp
smallfiles.cpp
testthread.cpp
testwidget.cpp
testwidget.ui
timer.cpp
${RESOURCES}
)
target_link_libraries(hddtest PRIVATE
Qt::Core
Qt::Gui
Qt::Widgets
Qt::Xml
)
set_property(TARGET hddtest PROPERTY CXX_STANDARD 23)
install(TARGETS hddtest
BUNDLE DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)