CMakeLists.txt

changeset 1291
9c570a30c98a
parent 1288
d1e45f90654b
child 1293
52732b1db3f0
equal deleted inserted replaced
1290:8db26042f3d1 1291:9c570a30c98a
37 src/glcamera.cpp 37 src/glcamera.cpp
38 src/glcompiler.cpp 38 src/glcompiler.cpp
39 src/glrenderer.cpp 39 src/glrenderer.cpp
40 src/grid.cpp 40 src/grid.cpp
41 src/guiutilities.cpp 41 src/guiutilities.cpp
42 src/headerhistorymodel.cpp
42 src/hierarchyelement.cpp 43 src/hierarchyelement.cpp
43 src/lddocument.cpp 44 src/lddocument.cpp
44 src/ldpaths.cpp 45 src/ldpaths.cpp
45 src/main.cpp 46 src/main.cpp
46 src/mainwindow.cpp 47 src/mainwindow.cpp
85 src/toolsets/filetoolset.cpp 86 src/toolsets/filetoolset.cpp
86 src/toolsets/movetoolset.cpp 87 src/toolsets/movetoolset.cpp
87 src/toolsets/toolset.cpp 88 src/toolsets/toolset.cpp
88 src/toolsets/viewtoolset.cpp 89 src/toolsets/viewtoolset.cpp
89 src/types/matrix.cpp 90 src/types/matrix.cpp
91 src/widgets/headeredit.cpp
90 ) 92 )
91 93
92 set (LDFORGE_HEADERS 94 set (LDFORGE_HEADERS
93 src/basics.h 95 src/basics.h
94 src/canvas.h 96 src/canvas.h
102 src/glcompiler.h 104 src/glcompiler.h
103 src/glrenderer.h 105 src/glrenderer.h
104 src/glShared.h 106 src/glShared.h
105 src/grid.h 107 src/grid.h
106 src/guiutilities.h 108 src/guiutilities.h
109 src/headerhistorymodel.h
107 src/hierarchyelement.h 110 src/hierarchyelement.h
108 src/lddocument.h 111 src/lddocument.h
109 src/ldobjectiterator.h 112 src/ldobjectiterator.h
110 src/ldpaths.h 113 src/ldpaths.h
111 src/macros.h 114 src/macros.h
155 src/toolsets/filetoolset.h 158 src/toolsets/filetoolset.h
156 src/toolsets/movetoolset.h 159 src/toolsets/movetoolset.h
157 src/toolsets/toolset.h 160 src/toolsets/toolset.h
158 src/toolsets/viewtoolset.h 161 src/toolsets/viewtoolset.h
159 src/types/matrix.h 162 src/types/matrix.h
163 src/widgets/headeredit.h
160 ) 164 )
161 165
162 set (LDFORGE_FORMS 166 set (LDFORGE_FORMS
163 src/dialogs/aboutdialog.ui 167 src/dialogs/aboutdialog.ui
164 src/dialogs/addhistorylinedialog.ui 168 src/dialogs/addhistorylinedialog.ui
179 src/dialogs/replacecoordinatesdialog.ui 183 src/dialogs/replacecoordinatesdialog.ui
180 src/dialogs/rotationpointdialog.ui 184 src/dialogs/rotationpointdialog.ui
181 src/dialogs/ytruderdialog.ui 185 src/dialogs/ytruderdialog.ui
182 src/mainwindow.ui 186 src/mainwindow.ui
183 src/partdownloader.ui 187 src/partdownloader.ui
188 src/widgets/headeredit.ui
184 ) 189 )
185 190
186 set (LDFORGE_OTHER_FILES 191 set (LDFORGE_OTHER_FILES
187 src/configurationoptions.txt 192 src/configurationoptions.txt
188 data/primitive-categories.cfg 193 data/primitive-categories.cfg
189 ) 194 )
190 195
191 set (LDFORGE_RESOURCES ldforge.qrc) 196 set (LDFORGE_RESOURCES ldforge.qrc)
192 # set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lGLU") 197 set(CMAKE_CXX_STANDARD 14)
193 198 set(CMAKE_CXX_STANDARD_REQUIRED ON)
194 if (NOT MSVC) 199 set(CMAKE_CXX_EXTENSIONS OFF)
195 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -W -Wall")
196 endif()
197 200
198 if (TRANSPARENT_DIRECT_COLORS) 201 if (TRANSPARENT_DIRECT_COLORS)
199 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTRANSPARENT_DIRECT_COLORS") 202 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTRANSPARENT_DIRECT_COLORS")
200 endif() 203 endif()
201 204
208 endif() 211 endif()
209 212
210 include_directories ("${PROJECT_BINARY_DIR}") 213 include_directories ("${PROJECT_BINARY_DIR}")
211 include_directories ("${PROJECT_BINARY_DIR}/src") 214 include_directories ("${PROJECT_BINARY_DIR}/src")
212 include_directories ("${PROJECT_BINARY_DIR}/src/misc") 215 include_directories ("${PROJECT_BINARY_DIR}/src/misc")
216 include_directories ("${PROJECT_SOURCE_DIR}/src")
213 217
214 if (NOT MSVC) 218 if (NOT MSVC)
215 if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo") 219 if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")
216 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG") 220 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG")
217 endif() 221 endif()

mercurial