-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
122 lines (111 loc) · 3.85 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
cmake_minimum_required(VERSION 3.16)
project(QtXlsx VERSION 1.0 LANGUAGES C CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
find_package(QT NAMES Qt5 Qt6 REQUIRED COMPONENTS Core Gui)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui)
set(XLSX_HEADERS
include/QtXlsx/qtxlsxversion.h
include/QtXlsx/xlsxabstractooxmlfile.h
include/QtXlsx/xlsxabstractsheet.h
include/QtXlsx/xlsxcell.h
include/QtXlsx/xlsxcellformula.h
include/QtXlsx/xlsxcellrange.h
include/QtXlsx/xlsxcellreference.h
include/QtXlsx/xlsxchart.h
include/QtXlsx/xlsxchartsheet.h
include/QtXlsx/xlsxconditionalformatting.h
include/QtXlsx/xlsxdatavalidation.h
include/QtXlsx/xlsxdocument.h
include/QtXlsx/xlsxformat.h
include/QtXlsx/xlsxglobal.h
include/QtXlsx/xlsxrichstring.h
include/QtXlsx/xlsxworkbook.h
include/QtXlsx/xlsxworksheet.h
)
set(XLSX_HEADERS_PRIVATE
include/QtXlsx/private/xlsxabstractooxmlfile_p.h
include/QtXlsx/private/xlsxabstractsheet_p.h
include/QtXlsx/private/xlsxcell_p.h
include/QtXlsx/private/xlsxcellformula_p.h
include/QtXlsx/private/xlsxchart_p.h
include/QtXlsx/private/xlsxchartsheet_p.h
include/QtXlsx/private/xlsxcolor_p.h
include/QtXlsx/private/xlsxconditionalformatting_p.h
include/QtXlsx/private/xlsxcontenttypes_p.h
include/QtXlsx/private/xlsxdatavalidation_p.h
include/QtXlsx/private/xlsxdocpropsapp_p.h
include/QtXlsx/private/xlsxdocpropscore_p.h
include/QtXlsx/private/xlsxdocument_p.h
include/QtXlsx/private/xlsxdrawing_p.h
include/QtXlsx/private/xlsxdrawinganchor_p.h
include/QtXlsx/private/xlsxformat_p.h
include/QtXlsx/private/xlsxmediafile_p.h
include/QtXlsx/private/xlsxnumformatparser_p.h
include/QtXlsx/private/xlsxrelationships_p.h
include/QtXlsx/private/xlsxrichstring_p.h
include/QtXlsx/private/xlsxsharedstrings_p.h
include/QtXlsx/private/xlsxsimpleooxmlfile_p.h
include/QtXlsx/private/xlsxstyles_p.h
include/QtXlsx/private/xlsxtheme_p.h
include/QtXlsx/private/xlsxutility_p.h
include/QtXlsx/private/xlsxworkbook_p.h
include/QtXlsx/private/xlsxworksheet_p.h
include/QtXlsx/private/xlsxzipreader_p.h
include/QtXlsx/private/xlsxzipwriter_p.h
)
set(XLSX_SOURCES
src/xlsx/xlsxdocpropscore.cpp
src/xlsx/xlsxdocpropsapp.cpp
src/xlsx/xlsxrelationships.cpp
src/xlsx/xlsxutility.cpp
src/xlsx/xlsxsharedstrings.cpp
src/xlsx/xlsxcontenttypes.cpp
src/xlsx/xlsxtheme.cpp
src/xlsx/xlsxformat.cpp
src/xlsx/xlsxstyles.cpp
src/xlsx/xlsxworkbook.cpp
src/xlsx/xlsxabstractsheet.cpp
src/xlsx/xlsxworksheet.cpp
src/xlsx/xlsxchartsheet.cpp
src/xlsx/xlsxzipwriter.cpp
src/xlsx/xlsxdrawing.cpp
src/xlsx/xlsxzipreader.cpp
src/xlsx/xlsxdocument.cpp
src/xlsx/xlsxcell.cpp
src/xlsx/xlsxdatavalidation.cpp
src/xlsx/xlsxcellreference.cpp
src/xlsx/xlsxcellrange.cpp
src/xlsx/xlsxrichstring.cpp
src/xlsx/xlsxconditionalformatting.cpp
src/xlsx/xlsxcolor.cpp
src/xlsx/xlsxnumformatparser.cpp
src/xlsx/xlsxdrawinganchor.cpp
src/xlsx/xlsxmediafile.cpp
src/xlsx/xlsxabstractooxmlfile.cpp
src/xlsx/xlsxchart.cpp
src/xlsx/xlsxsimpleooxmlfile.cpp
src/xlsx/xlsxcellformula.cpp
)
add_library(QtXlsx STATIC
${XLSX_HEADERS}
${XLSX_HEADERS_PRIVATE}
${XLSX_SOURCES}
)
target_include_directories(QtXlsx PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/include/QtXlsx
${CMAKE_CURRENT_SOURCE_DIR}/include/QtXlsx/private
)
target_link_libraries(QtXlsx PRIVATE
Qt::Core
Qt::Gui
Qt::GuiPrivate
)
target_compile_definitions(QtXlsx PRIVATE
XLSX_NO_LIB
)
#add_subdirectory(src)
add_library(xlsx ALIAS QtXlsx)
add_subdirectory(tests)
add_subdirectory(examples)