11cmake_minimum_required (VERSION 3.12.4 )
22
33project (odr LANGUAGES C CXX )
4- set (CMAKE_CXX_STANDARD 20 )
4+ set (CMAKE_CXX_STANDARD 17 )
55set (CMAKE_CXX_STANDARD_REQUIRED ON )
66set (CMAKE_CXX_EXTENSIONS OFF )
77
@@ -23,14 +23,9 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR
2323 #set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fno-omit-frame-pointer")
2424elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
2525 # using Visual Studio C++
26- endif ()
2726
28- # use ccache if available
29- find_program (CCACHE_FOUND ccache )
30- if (CCACHE_FOUND)
31- set_property (GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_FOUND} " )
32- message (STATUS "using ccache ${CCACHE_FOUND} " )
33- endif (CCACHE_FOUND )
27+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } /EHsc" )
28+ endif ()
3429
3530if (NOT DEFINED CONAN_EXPORTED)
3631 include ("cmake/conan.cmake" )
@@ -71,8 +66,8 @@ endif ()
7166
7267add_library (odr
7368 "src/odr/document.cpp"
74- "src/odr/document_cursor.cpp"
7569 "src/odr/document_element.cpp"
70+ "src/odr/document_path.cpp"
7671 "src/odr/exceptions.cpp"
7772 "src/odr/file.cpp"
7873 "src/odr/html.cpp"
@@ -91,8 +86,8 @@ add_library(odr
9186 "src/odr/internal/cfb/cfb_impl.cpp"
9287 "src/odr/internal/cfb/cfb_util.cpp"
9388
94- "src/odr/internal/common/document_cursor .cpp"
95- "src/odr/internal/common/document_path .cpp"
89+ "src/odr/internal/common/document .cpp"
90+ "src/odr/internal/common/document_element .cpp"
9691 "src/odr/internal/common/file.cpp"
9792 "src/odr/internal/common/filesystem.cpp"
9893 "src/odr/internal/common/image_file.cpp"
@@ -110,37 +105,38 @@ add_library(odr
110105 "src/odr/internal/csv/csv_util.cpp"
111106
112107 "src/odr/internal/html/common.cpp"
113- "src/odr/internal/html/css_writer.cpp"
114108 "src/odr/internal/html/document.cpp"
115109 "src/odr/internal/html/document_style.cpp"
116110 "src/odr/internal/html/document_element.cpp"
111+ "src/odr/internal/html/html_writer.cpp"
117112 "src/odr/internal/html/image_file.cpp"
118113 "src/odr/internal/html/text_file.cpp"
119114
120115 "src/odr/internal/json/json_file.cpp"
121116 "src/odr/internal/json/json_util.cpp"
122117
123118 "src/odr/internal/odf/odf_crypto.cpp"
124- "src/odr/internal/odf/odf_cursor.cpp"
125119 "src/odr/internal/odf/odf_document.cpp"
126120 "src/odr/internal/odf/odf_element.cpp"
127121 "src/odr/internal/odf/odf_file.cpp"
128122 "src/odr/internal/odf/odf_manifest.cpp"
129123 "src/odr/internal/odf/odf_meta.cpp"
124+ "src/odr/internal/odf/odf_parser.cpp"
125+ "src/odr/internal/odf/odf_spreadsheet.cpp"
130126 "src/odr/internal/odf/odf_style.cpp"
131127
132128 "src/odr/internal/oldms/oldms_file.cpp"
133129
134- "src/odr/internal/ooxml/presentation/ooxml_presentation_cursor.cpp"
135130 "src/odr/internal/ooxml/presentation/ooxml_presentation_document.cpp"
136131 "src/odr/internal/ooxml/presentation/ooxml_presentation_element.cpp"
137- "src/odr/internal/ooxml/spreadsheet/ooxml_spreadsheet_cursor .cpp"
132+ "src/odr/internal/ooxml/presentation/ooxml_presentation_parser .cpp"
138133 "src/odr/internal/ooxml/spreadsheet/ooxml_spreadsheet_document.cpp"
139134 "src/odr/internal/ooxml/spreadsheet/ooxml_spreadsheet_element.cpp"
135+ "src/odr/internal/ooxml/spreadsheet/ooxml_spreadsheet_parser.cpp"
140136 "src/odr/internal/ooxml/spreadsheet/ooxml_spreadsheet_style.cpp"
141- "src/odr/internal/ooxml/text/ooxml_text_cursor.cpp"
142137 "src/odr/internal/ooxml/text/ooxml_text_document.cpp"
143138 "src/odr/internal/ooxml/text/ooxml_text_element.cpp"
139+ "src/odr/internal/ooxml/text/ooxml_text_parser.cpp"
144140 "src/odr/internal/ooxml/text/ooxml_text_style.cpp"
145141 "src/odr/internal/ooxml/ooxml_crypto.cpp"
146142 "src/odr/internal/ooxml/ooxml_file.cpp"
0 commit comments