-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
62 lines (53 loc) · 1.53 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
57
58
59
60
61
62
cmake_minimum_required(VERSION 3.5)
project(ccosclib)
add_library(ccosclib STATIC
ccos_image/string_utils.h
ccos_image/string_utils.c
ccos_image/common.h
ccos_image/common.c
ccos_image/ccos_image.h
ccos_image/ccos_image.c
ccos_image/ccos_private.c
ccos_image/ccos_private.h
)
project(GRiDISKCOM LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories(ccos_image)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt5 COMPONENTS Widgets REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets REQUIRED)
if(WIN32)
set(GUI_TYPE WIN32)
endif()
add_executable(GRiDISKCOM ${GUI_TYPE}
main.cpp
dialogs/mainwindow.cpp
dialogs/mainwindow.h
dialogs/mainwindow.ui
dialogs/abdlg.cpp
dialogs/abdlg.h
dialogs/abdlg.ui
dialogs/chsedlg.cpp
dialogs/chsedlg.h
dialogs/chsedlg.ui
dialogs/datedlg.cpp
dialogs/datedlg.h
dialogs/datedlg.ui
dialogs/rendlg.cpp
dialogs/rendlg.h
dialogs/rendlg.ui
dialogs/verdlg.cpp
dialogs/verdlg.h
dialogs/verdlg.ui
icon/icon.qrc
execico.rc
)
if(WIN32)
target_link_libraries(GRiDISKCOM PRIVATE Qt5::Widgets Qt${QT_VERSION_MAJOR}::Widgets ccosclib)
else()
target_link_libraries(GRiDISKCOM PRIVATE Qt5::Widgets Qt${QT_VERSION_MAJOR}::Widgets ccosclib -no-pie)
endif()