Skip to content

Commit 37082ae

Browse files
committed
Move the code into separate directories
1 parent 4c9d4a8 commit 37082ae

63 files changed

Lines changed: 429 additions & 47 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,15 @@ endif()
2626

2727
# Add source files
2828
set(SOURCES
29-
main.cpp
30-
mainwindow.cpp
31-
mainwindow.h
32-
mainwindow.ui
33-
serial_port.cpp
34-
serial_port.h
35-
tcp_server.cpp
36-
tcp_server.h
37-
qdarkstyle/style.qrc
38-
)
29+
src/main.cpp
30+
src/mainwindow.cpp
31+
src/mainwindow.h
32+
src/mainwindow.ui
33+
src/serial_port.cpp
34+
src/serial_port.h
35+
src/tcp_server.cpp
36+
src/tcp_server.h
37+
src/qdarkstyle/style.qrc)
3938

4039
# Add executable
4140
add_executable(qCommTest ${SOURCES})
@@ -46,7 +45,7 @@ target_link_libraries(qCommTest PRIVATE ${QT_LIBS})
4645
# Add icon for Windows
4746
if(WIN32)
4847
set_target_properties(qCommTest PROPERTIES WIN32_EXECUTABLE TRUE)
49-
set(RC_ICONS qdarkstyle/rc/icon.ico)
48+
set(RC_ICONS src/qdarkstyle/rc/icon.ico)
5049
set(RC_FILE ${CMAKE_CURRENT_BINARY_DIR}/qCommTest.rc)
5150
file(WRITE ${RC_FILE} "IDI_ICON1 ICON DISCARDABLE \"${CMAKE_CURRENT_SOURCE_DIR}/${RC_ICONS}\"")
5251
target_sources(qCommTest PRIVATE ${RC_FILE})

README.md

Lines changed: 79 additions & 22 deletions

qCommTest.pro

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# qCommTest - Serial Communication Test Tool
22
QT += core gui network serialport widgets
33

4-
# Add support for Qt6
54
QT_MAJOR_VERSION = $str_member($split(QT_VERSION, .), 0)
65

76
if(equals(QT_MAJOR_VERSION, 6)) {
87
QT += serialport
98
}
109

11-
1210
TARGET = qCommTest
1311
TEMPLATE = app
1412

@@ -18,21 +16,13 @@ DEFINES += QT_DEPRECATED_WARNINGS
1816
# Uncomment to disable deprecated APIs up to a specific Qt version
1917
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000
2018

21-
SOURCES += \
22-
main.cpp \
23-
tcp_server.cpp \
24-
mainwindow.cpp \
25-
serial_port.cpp
19+
SOURCES += src/main.cpp src/tcp_server.cpp src/mainwindow.cpp src/serial_port.cpp
2620

27-
HEADERS += \
28-
tcp_server.h \
29-
mainwindow.h \
30-
serial_port.h
21+
HEADERS += src/tcp_server.h src/mainwindow.h src/serial_port.h
3122

32-
FORMS += \
33-
mainwindow.ui
23+
FORMS += src/mainwindow.ui
3424

35-
RESOURCES += qdarkstyle/style.qrc
25+
RESOURCES += src/qdarkstyle/style.qrc
3626

3727
win32:RC_ICONS += qdarkstyle/rc/icon.ico
3828

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)