-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
59 lines (40 loc) · 915 Bytes
/
CMakeLists.txt
File metadata and controls
59 lines (40 loc) · 915 Bytes
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
cmake_minimum_required(VERSION 3.1.0)
project(SerialCOM
VERSION
1.0
DESCRIPTION
"Serial Port Communication"
LANGUAGES
CXX
)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
if(CMAKE_VERSION VERSION_LESS "3.7.0")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
endif()
find_package(Qt5 COMPONENTS Widgets REQUIRED)
find_package(Qt5Core REQUIRED)
set(SRC_FILES
main.cpp
WidgetSerialPort.cpp
SerialCOM.cpp
)
set(HEADER_FILES
WidgetSerialPort.h
SerialCOM.h
)
set(UI_FILES
WidgetSerialPort.ui
SerialCOM.ui
)
set(QRC_FILES
icons.qrc
)
add_executable(${PROJECT_NAME} ${SRC_FILES} ${HEADER_FILES} ${UI_FILES} ${QRC_FILES})
add_definitions(-DQT_NO_VERSION_TAGGING)
target_link_libraries(${PROJECT_NAME} Qt5::Widgets)
qt5_use_modules(${PROJECT_NAME} Core SerialPort)
include_directories(.)