17 set(CMAKE_AUTORCC ON) |
17 set(CMAKE_AUTORCC ON) |
18 find_package(OpenGL REQUIRED) |
18 find_package(OpenGL REQUIRED) |
19 include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}) |
19 include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}) |
20 include_directories(${GLM_INCLUDE_DIR}) |
20 include_directories(${GLM_INCLUDE_DIR}) |
21 add_definitions(-DQT_NO_KEYWORDS) |
21 add_definitions(-DQT_NO_KEYWORDS) |
22 source_group("1 Foundation code" REGULAR_EXPRESSION "src/.+\\.(cpp|h|ui)") |
22 source_group("LDForge" REGULAR_EXPRESSION "src/.+\\.(cpp|h|ui)") |
23 source_group("4 OpenGL renderer" REGULAR_EXPRESSION "src/gl/.+\\.(cpp|h|ui)") |
23 #source_group("1 Foundation code" REGULAR_EXPRESSION "src/.+\\.(cpp|h|ui)") |
24 source_group("5 LDraw line types" REGULAR_EXPRESSION "src/linetypes/.+\\.(cpp|h|ui)") |
24 #source_group("4 OpenGL renderer" REGULAR_EXPRESSION "src/gl/.+\\.(cpp|h|ui)") |
25 source_group("5.1 LDraw algorithms" REGULAR_EXPRESSION "src/ldrawalgorithm.(cpp|h|ui)") |
25 #source_group("5 LDraw line types" REGULAR_EXPRESSION "src/linetypes/.+\\.(cpp|h|ui)") |
26 source_group("3.2 Widgets" REGULAR_EXPRESSION "src/(ui|widgets)/.+\\.(cpp|h|ui)") |
26 #source_group("5.1 LDraw algorithms" REGULAR_EXPRESSION "src/ldrawalgorithm.(cpp|h|ui)") |
27 source_group("3.1 Settings editor" REGULAR_EXPRESSION "src/settingseditor/.+\\.(cpp|h|ui)") |
27 #source_group("3.2 Widgets" REGULAR_EXPRESSION "src/(ui|widgets)/.+\\.(cpp|h|ui)") |
28 source_group("3 User interface" REGULAR_EXPRESSION "src/(mainwindow|document|documentmanager|uiutilities)\\.(cpp|h|ui)") |
28 #source_group("3.1 Settings editor" REGULAR_EXPRESSION "src/settingseditor/.+\\.(cpp|h|ui)") |
29 source_group("2 Model handling" REGULAR_EXPRESSION "src/(model|modeleditor|libraries|colors|parser|vertexmap|edithistory|polygoncache)\\.(cpp|h|ui)") |
29 #source_group("3 User interface" REGULAR_EXPRESSION "src/(mainwindow|document|documentmanager|uiutilities)\\.(cpp|h|ui)") |
30 source_group("6 Editing tools" REGULAR_EXPRESSION "src/tools/.+\\.(cpp|h|ui)") |
30 #source_group("2 Model handling" REGULAR_EXPRESSION "src/(model|modeleditor|libraries|colors|parser|vertexmap|edithistory|polygoncache)\\.(cpp|h|ui)") |
31 |
31 |
32 set (LDFORGE_SOURCES |
32 set (LDFORGE_SOURCES |
33 src/colors.cpp |
33 src/colors.cpp |
34 src/document.cpp |
34 src/document.cpp |
35 src/documentmanager.cpp |
35 src/documentmanager.cpp |
75 src/widgets/colorindexinput.cpp |
75 src/widgets/colorindexinput.cpp |
76 src/widgets/colorselectdialog.cpp |
76 src/widgets/colorselectdialog.cpp |
77 src/widgets/doublespinbox.cpp |
77 src/widgets/doublespinbox.cpp |
78 src/widgets/matrixeditor.cpp |
78 src/widgets/matrixeditor.cpp |
79 src/widgets/vec3editor.cpp |
79 src/widgets/vec3editor.cpp |
80 src/tools/basetool.cpp |
|
81 src/tools/circletool.cpp |
|
82 src/tools/selecttool.cpp |
|
83 src/tools/drawtool.cpp |
|
84 src/tools/pathtool.cpp |
|
85 src/tools/transformtool.cpp |
|
86 ) |
80 ) |
87 set (LDFORGE_HEADERS |
81 set (LDFORGE_HEADERS |
88 src/basics.h |
82 src/basics.h |
89 src/colors.h |
83 src/colors.h |
90 src/document.h |
84 src/document.h |
138 src/widgets/colorindexinput.h |
132 src/widgets/colorindexinput.h |
139 src/widgets/colorselectdialog.h |
133 src/widgets/colorselectdialog.h |
140 src/widgets/doublespinbox.h |
134 src/widgets/doublespinbox.h |
141 src/widgets/matrixeditor.h |
135 src/widgets/matrixeditor.h |
142 src/widgets/vec3editor.h |
136 src/widgets/vec3editor.h |
143 src/tools/selecttool.h |
|
144 src/tools/basetool.h |
|
145 src/tools/circletool.h |
|
146 src/tools/drawtool.h |
|
147 src/tools/pathtool.h |
|
148 src/tools/transformtool.h |
|
149 ) |
137 ) |
150 set (LDFORGE_FORMS |
138 set (LDFORGE_FORMS |
151 src/document.ui |
139 src/document.ui |
152 src/mainwindow.ui |
140 src/mainwindow.ui |
153 src/settingseditor/librarieseditor.ui |
141 src/settingseditor/librarieseditor.ui |