CMakeLists.txt

changeset 1391
5fa4bf1fc781
parent 1390
3eace926af7f
child 1392
0541d9b21968
equal deleted inserted replaced
1390:3eace926af7f 1391:5fa4bf1fc781
77 src/editmodes/selectMode.cpp 77 src/editmodes/selectMode.cpp
78 src/geometry/linesegment.cpp 78 src/geometry/linesegment.cpp
79 src/geometry/plane.cpp 79 src/geometry/plane.cpp
80 src/linetypes/comment.cpp 80 src/linetypes/comment.cpp
81 src/linetypes/conditionaledge.cpp 81 src/linetypes/conditionaledge.cpp
82 src/linetypes/cylinder.cpp
82 src/linetypes/edgeline.cpp 83 src/linetypes/edgeline.cpp
83 src/linetypes/empty.cpp 84 src/linetypes/empty.cpp
84 src/linetypes/modelobject.cpp 85 src/linetypes/modelobject.cpp
85 src/linetypes/quadrilateral.cpp 86 src/linetypes/quadrilateral.cpp
86 src/linetypes/triangle.cpp 87 src/linetypes/triangle.cpp
94 src/types/boundingbox.cpp 95 src/types/boundingbox.cpp
95 src/types/matrix.cpp 96 src/types/matrix.cpp
96 src/types/vertex.cpp 97 src/types/vertex.cpp
97 src/widgets/doublespinbox.cpp 98 src/widgets/doublespinbox.cpp
98 src/widgets/headeredit.cpp 99 src/widgets/headeredit.cpp
100 src/widgets/matrixeditor.cpp
99 src/widgets/vertexobjecteditor.cpp 101 src/widgets/vertexobjecteditor.cpp
100 ) 102 )
101 103
102 set (LDFORGE_HEADERS 104 set (LDFORGE_HEADERS
103 src/basics.h 105 src/basics.h
155 src/generics/transform.h 157 src/generics/transform.h
156 src/geometry/linesegment.h 158 src/geometry/linesegment.h
157 src/geometry/plane.h 159 src/geometry/plane.h
158 src/linetypes/comment.h 160 src/linetypes/comment.h
159 src/linetypes/conditionaledge.h 161 src/linetypes/conditionaledge.h
162 src/linetypes/cylinder.h
160 src/linetypes/edgeline.h 163 src/linetypes/edgeline.h
161 src/linetypes/empty.h 164 src/linetypes/empty.h
162 src/linetypes/modelobject.h 165 src/linetypes/modelobject.h
163 src/linetypes/quadrilateral.h 166 src/linetypes/quadrilateral.h
164 src/linetypes/triangle.h 167 src/linetypes/triangle.h
173 src/types/library.h 176 src/types/library.h
174 src/types/matrix.h 177 src/types/matrix.h
175 src/types/vertex.h 178 src/types/vertex.h
176 src/widgets/doublespinbox.h 179 src/widgets/doublespinbox.h
177 src/widgets/headeredit.h 180 src/widgets/headeredit.h
181 src/widgets/matrixeditor.h
178 src/widgets/vertexobjecteditor.h 182 src/widgets/vertexobjecteditor.h
179 ) 183 )
180 184
181 set (LDFORGE_FORMS 185 set (LDFORGE_FORMS
182 src/dialogs/aboutdialog.ui 186 src/dialogs/aboutdialog.ui
200 src/toolsets/fixroundingerrors.ui 204 src/toolsets/fixroundingerrors.ui
201 src/mainwindow.ui 205 src/mainwindow.ui
202 src/partdownloader.ui 206 src/partdownloader.ui
203 src/widgets/vertexobjecteditor.ui 207 src/widgets/vertexobjecteditor.ui
204 src/widgets/headeredit.ui 208 src/widgets/headeredit.ui
209 src/widgets/matrixeditor.ui
205 ) 210 )
206 211
207 set (LDFORGE_OTHER_FILES 212 set (LDFORGE_OTHER_FILES
208 src/configurationoptions.txt 213 src/configurationoptions.txt
209 data/primitive-categories.cfg 214 data/primitive-categories.cfg
232 237
233 if (NOT MSVC) 238 if (NOT MSVC)
234 if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo") 239 if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")
235 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG") 240 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG")
236 endif() 241 endif()
242 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wall -Wpedantic -Werror=switch")
237 endif() 243 endif()
238 244
239 qt5_add_resources (LDFORGE_QRC ${LDFORGE_RESOURCES}) 245 qt5_add_resources (LDFORGE_QRC ${LDFORGE_RESOURCES})
240 qt5_wrap_ui (LDFORGE_FORMS_HEADERS ${LDFORGE_FORMS}) 246 qt5_wrap_ui (LDFORGE_FORMS_HEADERS ${LDFORGE_FORMS})
241 add_executable (ldforge WIN32 ${LDFORGE_SOURCES} ${LDFORGE_HEADERS} ${LDFORGE_OTHER_FILES} 247 add_executable (ldforge WIN32 ${LDFORGE_SOURCES} ${LDFORGE_HEADERS} ${LDFORGE_OTHER_FILES}

mercurial