-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (39 loc) · 885 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
52
53
54
55
56
cmake_minimum_required(VERSION 3.1.0)
project(ClickableQLabel
VERSION
1.0
DESCRIPTION
"Qt based Clickable Label"
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
ClickableQLabel.cpp
mainwindow.cpp
)
set(HEADER_FILES
ClickableQLabel.h
mainwindow.h
)
set(UI_FILES
mainwindow.ui
)
#set(QRC_FILES
# resources.qrc
# )
add_executable(${PROJECT_NAME} ${SRC_FILES} ${HEADER_FILES} ${UI_FILES} )
add_definitions(-DQT_NO_VERSION_TAGGING)
target_link_libraries(${PROJECT_NAME} Qt5::Widgets )
qt5_use_modules(${PROJECT_NAME} Core )
include_directories(.)