CMakeLists.txt

Wed, 18 Nov 2015 19:05:22 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Wed, 18 Nov 2015 19:05:22 +0200
changeset 1012
413ecd6b9801
parent 1005
a88cf5a32246
child 1015
92c6ec099075
child 1226
d1199d965235
permissions
-rw-r--r--

It worx again!

632
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
1 ######################################################################
845
fec7023e91a7 - added a code generator to produce a configuration.inc which replaces the old, DIABOLIC configuration indexing mechanism
Teemu Piippo <crimsondusk64@gmail.com>
parents: 842
diff changeset
2 #
fec7023e91a7 - added a code generator to produce a configuration.inc which replaces the old, DIABOLIC configuration indexing mechanism
Teemu Piippo <crimsondusk64@gmail.com>
parents: 842
diff changeset
3 # CMake file for LDForge.
fec7023e91a7 - added a code generator to produce a configuration.inc which replaces the old, DIABOLIC configuration indexing mechanism
Teemu Piippo <crimsondusk64@gmail.com>
parents: 842
diff changeset
4 # The original QMake file was created on Sat Sep 22 17:29:49 2012
fec7023e91a7 - added a code generator to produce a configuration.inc which replaces the old, DIABOLIC configuration indexing mechanism
Teemu Piippo <crimsondusk64@gmail.com>
parents: 842
diff changeset
5 #
632
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
6 ######################################################################
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
7
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
8 project (ldforge)
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
9 cmake_minimum_required (VERSION 2.6)
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
10
801
f6abc9eb4217 - made transparent direct colors a compile-time opt-in since it appears to be non-standard
Santeri Piippo <crimsondusk64@gmail.com>
parents: 785
diff changeset
11 option (TRANSPARENT_DIRECT_COLORS "Enables non-standard transparent direct colors" OFF)
855
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
12 option (USE_QT5 "Use Qt5 instead of Qt4" OFF)
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
13
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
14 if (USE_QT5)
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
15 find_package (Qt5Widgets REQUIRED)
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
16 find_package (Qt5Core REQUIRED)
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
17 find_package (Qt5OpenGL REQUIRED)
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
18 find_package (Qt5Network REQUIRED)
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
19 set (CMAKE_AUTOMOC ON)
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
20 else()
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
21 find_package (Qt4 REQUIRED)
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
22 endif()
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
23
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
24 find_package (OpenGL REQUIRED)
801
f6abc9eb4217 - made transparent direct colors a compile-time opt-in since it appears to be non-standard
Santeri Piippo <crimsondusk64@gmail.com>
parents: 785
diff changeset
25
970
c8aae45afd85 Commit configuration rework (doesn't work yet, more than most probably doesn't compile either)
Teemu Piippo <crimsondusk64@gmail.com>
parents: 969
diff changeset
26 add_custom_target (revision_check ALL
c8aae45afd85 Commit configuration rework (doesn't work yet, more than most probably doesn't compile either)
Teemu Piippo <crimsondusk64@gmail.com>
parents: 969
diff changeset
27 COMMAND python "${CMAKE_SOURCE_DIR}/tools/updaterevision.py" hginfo.h
c8aae45afd85 Commit configuration rework (doesn't work yet, more than most probably doesn't compile either)
Teemu Piippo <crimsondusk64@gmail.com>
parents: 969
diff changeset
28 WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
632
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
29
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
30 include_directories (${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
31
972
a34b73114823 Now doesn't crash anymore
Teemu Piippo <crimsondusk64@gmail.com>
parents: 971
diff changeset
32 set_source_files_properties (${CMAKE_BINARY_DIR}/configurationvaluebag.cpp PROPERTIES GENERATED TRUE)
a34b73114823 Now doesn't crash anymore
Teemu Piippo <crimsondusk64@gmail.com>
parents: 971
diff changeset
33
661
577bc177a06f - renamed some cmake identifiers
Santeri Piippo <crimsondusk64@gmail.com>
parents: 660
diff changeset
34 set (LDFORGE_SOURCES
952
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
35 src/addObjectDialog.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
36 src/basics.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
37 src/colors.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
38 src/crashCatcher.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
39 src/dialogs.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
40 src/documentation.cpp
980
4a95c6b06ebe Split LDFileLoader (now LDDocumentLoader) into its own files
Teemu Piippo <crimsondusk64@gmail.com>
parents: 975
diff changeset
41 src/documentloader.cpp
997
1b49f34e533d Commit work done on document manager. Happy 3rd birthday LDForge!
Teemu Piippo <crimsondusk64@gmail.com>
parents: 994
diff changeset
42 src/documentmanager.cpp
952
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
43 src/editHistory.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
44 src/glRenderer.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
45 src/glCompiler.cpp
974
b2fa5f89798a Added a GuiUtilities class to contain useful non-MainWindow-related GUI functions
Teemu Piippo <crimsondusk64@gmail.com>
parents: 972
diff changeset
46 src/guiutilities.cpp
971
c00f9665a9f8 Now compiles and links but crashes shortly after startup.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 970
diff changeset
47 src/hierarchyelement.cpp
952
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
48 src/ldDocument.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
49 src/ldObject.cpp
971
c00f9665a9f8 Now compiles and links but crashes shortly after startup.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 970
diff changeset
50 src/ldObjectMath.cpp
953
8349552ee5e9 Refactor LDrawPathDialog and LDPaths
Teemu Piippo <crimsondusk64@gmail.com>
parents: 952
diff changeset
51 src/ldpaths.cpp
952
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
52 src/main.cpp
962
a4b463a7ee82 Rename MainWindow files
Teemu Piippo <crimsondusk64@gmail.com>
parents: 958
diff changeset
53 src/mainwindow.cpp
952
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
54 src/messageLog.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
55 src/miscallenous.cpp
994
09e1a3e272ec Split PartDownloadRequest into its own file
Teemu Piippo <crimsondusk64@gmail.com>
parents: 991
diff changeset
56 src/partdownloader.cpp
09e1a3e272ec Split PartDownloadRequest into its own file
Teemu Piippo <crimsondusk64@gmail.com>
parents: 991
diff changeset
57 src/partdownloadrequest.cpp
952
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
58 src/primitives.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
59 src/radioGroup.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
60 src/ringFinder.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
61 src/version.cpp
950
5df69eb50182 Move colorSelector.cc to dialogs/colorselector.cpp
Teemu Piippo <crimsondusk64@gmail.com>
parents: 948
diff changeset
62 src/dialogs/colorselector.cpp
975
24ba5aa3393f Move ConfigDialog into src/dialogs/ subfolder
Teemu Piippo <crimsondusk64@gmail.com>
parents: 974
diff changeset
63 src/dialogs/configdialog.cpp
953
8349552ee5e9 Refactor LDrawPathDialog and LDPaths
Teemu Piippo <crimsondusk64@gmail.com>
parents: 952
diff changeset
64 src/dialogs/ldrawpathdialog.cpp
954
7feaa1a3c438 Refactor the new part dialog into a new class
Teemu Piippo <crimsondusk64@gmail.com>
parents: 953
diff changeset
65 src/dialogs/newpartdialog.cpp
957
429c7ed3cc54 Refactor OpenProgressDialog out of dialogs.cpp
Teemu Piippo <crimsondusk64@gmail.com>
parents: 956
diff changeset
66 src/dialogs/openprogressdialog.cpp
952
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
67 src/editmodes/abstractEditMode.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
68 src/editmodes/circleMode.cpp
1000
c064cc048f14 Begin work on Bézier curve support. They can be drawn but don't render in 3D and they load as comments.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 997
diff changeset
69 src/editmodes/curvemode.cpp
952
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
70 src/editmodes/drawMode.cpp
876
f040f0fb3795 - renamed line loop to line path, updated changelog
Teemu Piippo <crimsondusk64@gmail.com>
parents: 874
diff changeset
71 src/editmodes/linePathMode.cpp
952
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
72 src/editmodes/magicWandMode.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
73 src/editmodes/rectangleMode.cpp
f116b63c4844 Rename all .cc files to .cpp files.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 950
diff changeset
74 src/editmodes/selectMode.cpp
969
b1742ee91d5b Split actions.cpp and actionsEdit.cpp into toolsets.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 962
diff changeset
75 src/toolsets/algorithmtoolset.cpp
b1742ee91d5b Split actions.cpp and actionsEdit.cpp into toolsets.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 962
diff changeset
76 src/toolsets/basictoolset.cpp
b1742ee91d5b Split actions.cpp and actionsEdit.cpp into toolsets.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 962
diff changeset
77 src/toolsets/extprogramtoolset.cpp
b1742ee91d5b Split actions.cpp and actionsEdit.cpp into toolsets.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 962
diff changeset
78 src/toolsets/filetoolset.cpp
b1742ee91d5b Split actions.cpp and actionsEdit.cpp into toolsets.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 962
diff changeset
79 src/toolsets/movetoolset.cpp
b1742ee91d5b Split actions.cpp and actionsEdit.cpp into toolsets.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 962
diff changeset
80 src/toolsets/toolset.cpp
b1742ee91d5b Split actions.cpp and actionsEdit.cpp into toolsets.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 962
diff changeset
81 src/toolsets/viewtoolset.cpp
632
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
82 )
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
83
661
577bc177a06f - renamed some cmake identifiers
Santeri Piippo <crimsondusk64@gmail.com>
parents: 660
diff changeset
84 set (LDFORGE_HEADERS
989
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
85 src/addObjectDialog.h
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
86 src/basics.h
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents: 644
diff changeset
87 src/colors.h
989
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
88 src/crashCatcher.h
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents: 644
diff changeset
89 src/dialogs.h
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents: 644
diff changeset
90 src/documentation.h
989
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
91 src/documentloader.h
997
1b49f34e533d Commit work done on document manager. Happy 3rd birthday LDForge!
Teemu Piippo <crimsondusk64@gmail.com>
parents: 994
diff changeset
92 src/documentmanager.h
989
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
93 src/doublemap.h
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents: 644
diff changeset
94 src/editHistory.h
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents: 644
diff changeset
95 src/format.h
989
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
96 src/glCompiler.h
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
97 src/glRenderer.h
974
b2fa5f89798a Added a GuiUtilities class to contain useful non-MainWindow-related GUI functions
Teemu Piippo <crimsondusk64@gmail.com>
parents: 972
diff changeset
98 src/guiutilities.h
989
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
99 src/hierarchyelement.h
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
100 src/ldDocument.h
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
101 src/ldObject.h
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
102 src/ldObjectMath.h
1005
a88cf5a32246 Subject Bézier curve fineness to the grid. By default, the coarse grid uses 8 segments, medium 16 and fine 32. Moved rasterization from demoting to inlining, it feels more sensible for it to be there.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 1000
diff changeset
103 src/ldobjectiterator.h
989
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
104 src/ldpaths.h
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
105 src/macros.h
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
106 src/main.h
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
107 src/mainwindow.h
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
108 src/messageLog.h
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
109 src/miscallenous.h
994
09e1a3e272ec Split PartDownloadRequest into its own file
Teemu Piippo <crimsondusk64@gmail.com>
parents: 991
diff changeset
110 src/partdownloader.h
09e1a3e272ec Split PartDownloadRequest into its own file
Teemu Piippo <crimsondusk64@gmail.com>
parents: 991
diff changeset
111 src/partdownloadrequest.h
989
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
112 src/primitives.h
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
113 src/radioGroup.h
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
114 src/ringFinder.h
950
5df69eb50182 Move colorSelector.cc to dialogs/colorselector.cpp
Teemu Piippo <crimsondusk64@gmail.com>
parents: 948
diff changeset
115 src/dialogs/colorselector.h
975
24ba5aa3393f Move ConfigDialog into src/dialogs/ subfolder
Teemu Piippo <crimsondusk64@gmail.com>
parents: 974
diff changeset
116 src/dialogs/configdialog.h
953
8349552ee5e9 Refactor LDrawPathDialog and LDPaths
Teemu Piippo <crimsondusk64@gmail.com>
parents: 952
diff changeset
117 src/dialogs/ldrawpathdialog.h
954
7feaa1a3c438 Refactor the new part dialog into a new class
Teemu Piippo <crimsondusk64@gmail.com>
parents: 953
diff changeset
118 src/dialogs/newpartdialog.h
957
429c7ed3cc54 Refactor OpenProgressDialog out of dialogs.cpp
Teemu Piippo <crimsondusk64@gmail.com>
parents: 956
diff changeset
119 src/dialogs/openprogressdialog.h
830
a741a0b9df49 - updated filenames
Santeri Piippo <crimsondusk64@gmail.com>
parents: 825
diff changeset
120 src/editmodes/abstractEditMode.h
a741a0b9df49 - updated filenames
Santeri Piippo <crimsondusk64@gmail.com>
parents: 825
diff changeset
121 src/editmodes/circleMode.h
1000
c064cc048f14 Begin work on Bézier curve support. They can be drawn but don't render in 3D and they load as comments.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 997
diff changeset
122 src/editmodes/curvemode.h
830
a741a0b9df49 - updated filenames
Santeri Piippo <crimsondusk64@gmail.com>
parents: 825
diff changeset
123 src/editmodes/drawMode.h
989
1cd1d082a540 Sort LDFORGE_HEADERS in CMakeLists.txt
Teemu Piippo <crimsondusk64@gmail.com>
parents: 988
diff changeset
124 src/editmodes/linePathMode.h
830
a741a0b9df49 - updated filenames
Santeri Piippo <crimsondusk64@gmail.com>
parents: 825
diff changeset
125 src/editmodes/magicWandMode.h
841
1243abd47381 - split the rectangle ability out of the draw mode into its own edit mode
Teemu Piippo <crimsondusk64@gmail.com>
parents: 830
diff changeset
126 src/editmodes/rectangleMode.h
830
a741a0b9df49 - updated filenames
Santeri Piippo <crimsondusk64@gmail.com>
parents: 825
diff changeset
127 src/editmodes/selectMode.h
969
b1742ee91d5b Split actions.cpp and actionsEdit.cpp into toolsets.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 962
diff changeset
128 src/toolsets/algorithmtoolset.h
b1742ee91d5b Split actions.cpp and actionsEdit.cpp into toolsets.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 962
diff changeset
129 src/toolsets/basictoolset.h
b1742ee91d5b Split actions.cpp and actionsEdit.cpp into toolsets.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 962
diff changeset
130 src/toolsets/extprogramtoolset.h
b1742ee91d5b Split actions.cpp and actionsEdit.cpp into toolsets.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 962
diff changeset
131 src/toolsets/filetoolset.h
b1742ee91d5b Split actions.cpp and actionsEdit.cpp into toolsets.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 962
diff changeset
132 src/toolsets/movetoolset.h
b1742ee91d5b Split actions.cpp and actionsEdit.cpp into toolsets.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 962
diff changeset
133 src/toolsets/toolset.h
b1742ee91d5b Split actions.cpp and actionsEdit.cpp into toolsets.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 962
diff changeset
134 src/toolsets/viewtoolset.h
632
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
135 )
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
136
661
577bc177a06f - renamed some cmake identifiers
Santeri Piippo <crimsondusk64@gmail.com>
parents: 660
diff changeset
137 set (LDFORGE_FORMS
632
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
138 ui/about.ui
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
139 ui/addhistoryline.ui
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
140 ui/coverer.ui
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
141 ui/edger2.ui
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
142 ui/editraw.ui
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
143 ui/extprogpath.ui
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
144 ui/flip.ui
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
145 ui/intersector.ui
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
146 ui/isecalc.ui
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
147 ui/makeprim.ui
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
148 ui/overlay.ui
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
149 ui/rectifier.ui
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
150 ui/replcoords.ui
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
151 ui/rotpoint.ui
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
152 ui/ytruder.ui
962
a4b463a7ee82 Rename MainWindow files
Teemu Piippo <crimsondusk64@gmail.com>
parents: 958
diff changeset
153 src/mainwindow.ui
994
09e1a3e272ec Split PartDownloadRequest into its own file
Teemu Piippo <crimsondusk64@gmail.com>
parents: 991
diff changeset
154 src/partdownloader.ui
950
5df69eb50182 Move colorSelector.cc to dialogs/colorselector.cpp
Teemu Piippo <crimsondusk64@gmail.com>
parents: 948
diff changeset
155 src/dialogs/colorselector.ui
975
24ba5aa3393f Move ConfigDialog into src/dialogs/ subfolder
Teemu Piippo <crimsondusk64@gmail.com>
parents: 974
diff changeset
156 src/dialogs/configdialog.ui
953
8349552ee5e9 Refactor LDrawPathDialog and LDPaths
Teemu Piippo <crimsondusk64@gmail.com>
parents: 952
diff changeset
157 src/dialogs/ldrawpathdialog.ui
954
7feaa1a3c438 Refactor the new part dialog into a new class
Teemu Piippo <crimsondusk64@gmail.com>
parents: 953
diff changeset
158 src/dialogs/newpartdialog.ui
957
429c7ed3cc54 Refactor OpenProgressDialog out of dialogs.cpp
Teemu Piippo <crimsondusk64@gmail.com>
parents: 956
diff changeset
159 src/dialogs/openprogressdialog.ui
632
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
160 )
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
161
661
577bc177a06f - renamed some cmake identifiers
Santeri Piippo <crimsondusk64@gmail.com>
parents: 660
diff changeset
162 set (LDFORGE_RESOURCES ldforge.qrc)
855
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
163 # set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lGLU")
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
164
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
165 if (NOT MSVC)
972
a34b73114823 Now doesn't crash anymore
Teemu Piippo <crimsondusk64@gmail.com>
parents: 971
diff changeset
166 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -W -Wall")
855
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
167 endif()
660
bc589e352f5b - now compiles with clang
Santeri Piippo <crimsondusk64@gmail.com>
parents: 657
diff changeset
168
801
f6abc9eb4217 - made transparent direct colors a compile-time opt-in since it appears to be non-standard
Santeri Piippo <crimsondusk64@gmail.com>
parents: 785
diff changeset
169 if (TRANSPARENT_DIRECT_COLORS)
f6abc9eb4217 - made transparent direct colors a compile-time opt-in since it appears to be non-standard
Santeri Piippo <crimsondusk64@gmail.com>
parents: 785
diff changeset
170 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTRANSPARENT_DIRECT_COLORS")
f6abc9eb4217 - made transparent direct colors a compile-time opt-in since it appears to be non-standard
Santeri Piippo <crimsondusk64@gmail.com>
parents: 785
diff changeset
171 endif()
f6abc9eb4217 - made transparent direct colors a compile-time opt-in since it appears to be non-standard
Santeri Piippo <crimsondusk64@gmail.com>
parents: 785
diff changeset
172
660
bc589e352f5b - now compiles with clang
Santeri Piippo <crimsondusk64@gmail.com>
parents: 657
diff changeset
173 # With clang, we need to set -Wno-deprecated since Qt headers seem to use the
bc589e352f5b - now compiles with clang
Santeri Piippo <crimsondusk64@gmail.com>
parents: 657
diff changeset
174 # register keyword which clang doesn't seem to like. It also appears that Qt
bc589e352f5b - now compiles with clang
Santeri Piippo <crimsondusk64@gmail.com>
parents: 657
diff changeset
175 # doesn't set Q_COMPILER_INITIALIZER_LISTS when compiling with clang? What's
bc589e352f5b - now compiles with clang
Santeri Piippo <crimsondusk64@gmail.com>
parents: 657
diff changeset
176 # up with that?
bc589e352f5b - now compiles with clang
Santeri Piippo <crimsondusk64@gmail.com>
parents: 657
diff changeset
177 if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
972
a34b73114823 Now doesn't crash anymore
Teemu Piippo <crimsondusk64@gmail.com>
parents: 971
diff changeset
178 #set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
660
bc589e352f5b - now compiles with clang
Santeri Piippo <crimsondusk64@gmail.com>
parents: 657
diff changeset
179 endif()
bc589e352f5b - now compiles with clang
Santeri Piippo <crimsondusk64@gmail.com>
parents: 657
diff changeset
180
633
34d18b9c2cab - fixed compilation
Santeri Piippo <crimsondusk64@gmail.com>
parents: 632
diff changeset
181 include_directories ("${PROJECT_BINARY_DIR}")
632
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
182 include_directories ("${PROJECT_BINARY_DIR}/src")
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
183 include_directories ("${PROJECT_BINARY_DIR}/src/misc")
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
184
855
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
185 if (NOT MSVC)
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
186 if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
187 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG")
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
188 endif()
632
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
189 endif()
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
190
855
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
191 if (USE_QT5)
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
192 qt5_add_resources (LDFORGE_QRC ${LDFORGE_RESOURCES})
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
193 qt5_wrap_ui (LDFORGE_FORMS_HEADERS ${LDFORGE_FORMS})
991
cb6b3625adf4 Use automoc so that it compiles again...
Teemu Piippo <crimsondusk64@gmail.com>
parents: 990
diff changeset
194 add_executable (ldforge WIN32 ${LDFORGE_SOURCES} ${LDFORGE_HEADERS}
972
a34b73114823 Now doesn't crash anymore
Teemu Piippo <crimsondusk64@gmail.com>
parents: 971
diff changeset
195 ${LDFORGE_QRC} ${LDFORGE_FORMS_HEADERS}
a34b73114823 Now doesn't crash anymore
Teemu Piippo <crimsondusk64@gmail.com>
parents: 971
diff changeset
196 ${CMAKE_BINARY_DIR}/configurationvaluebag.cpp)
855
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
197 else()
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
198 qt4_wrap_ui (LDFORGE_FORMS_HEADERS ${LDFORGE_FORMS})
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
199 qt4_add_resources (LDFORGE_RCC ${LDFORGE_RESOURCES})
991
cb6b3625adf4 Use automoc so that it compiles again...
Teemu Piippo <crimsondusk64@gmail.com>
parents: 990
diff changeset
200 add_executable (ldforge WIN32 ${LDFORGE_SOURCES} ${LDFORGE_RCC}
cb6b3625adf4 Use automoc so that it compiles again...
Teemu Piippo <crimsondusk64@gmail.com>
parents: 990
diff changeset
201 ${LDFORGE_FORMS_HEADERS} ${LDFORGE_HEADERS}
972
a34b73114823 Now doesn't crash anymore
Teemu Piippo <crimsondusk64@gmail.com>
parents: 971
diff changeset
202 ${CMAKE_BINARY_DIR}/configurationvaluebag.cpp)
855
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
203 endif()
632
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
204
991
cb6b3625adf4 Use automoc so that it compiles again...
Teemu Piippo <crimsondusk64@gmail.com>
parents: 990
diff changeset
205 set_source_files_properties (${LDFORGE_HEADERS} PROPERTIES HEADER_FILE_ONLY TRUE)
cb6b3625adf4 Use automoc so that it compiles again...
Teemu Piippo <crimsondusk64@gmail.com>
parents: 990
diff changeset
206 set_target_properties (ldforge PROPERTIES AUTOMOC 1)
cb6b3625adf4 Use automoc so that it compiles again...
Teemu Piippo <crimsondusk64@gmail.com>
parents: 990
diff changeset
207
855
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
208 if (USE_QT5)
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
209 target_link_libraries (ldforge Qt5::Widgets Qt5::Network Qt5::OpenGL ${OPENGL_LIBRARIES})
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
210 else()
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
211 target_link_libraries (ldforge
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
212 ${QT_QTCORE_LIBRARY}
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
213 ${QT_QTGUI_LIBRARY}
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
214 ${QT_QTNETWORK_LIBRARY}
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
215 ${QT_QTOPENGL_LIBRARY}
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
216 ${OPENGL_LIBRARIES}
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
217 )
e16f1587ef44 - fixed compilation on windows systems
Santeri Piippo <crimsondusk64@gmail.com>
parents: 845
diff changeset
218 endif()
632
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
219
971
c00f9665a9f8 Now compiles and links but crashes shortly after startup.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 970
diff changeset
220 add_custom_target (config_collection ALL
c00f9665a9f8 Now compiles and links but crashes shortly after startup.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 970
diff changeset
221 COMMAND python
c00f9665a9f8 Now compiles and links but crashes shortly after startup.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 970
diff changeset
222 "${CMAKE_SOURCE_DIR}/tools/configcollector.py"
c00f9665a9f8 Now compiles and links but crashes shortly after startup.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 970
diff changeset
223 --header ${CMAKE_BINARY_DIR}/configurationvaluebag.h
c00f9665a9f8 Now compiles and links but crashes shortly after startup.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 970
diff changeset
224 --source ${CMAKE_BINARY_DIR}/configurationvaluebag.cpp
c00f9665a9f8 Now compiles and links but crashes shortly after startup.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 970
diff changeset
225 --sourcedir ${CMAKE_SOURCE_DIR}/src
c00f9665a9f8 Now compiles and links but crashes shortly after startup.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 970
diff changeset
226 ${LDFORGE_SOURCES}
c00f9665a9f8 Now compiles and links but crashes shortly after startup.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 970
diff changeset
227 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
c00f9665a9f8 Now compiles and links but crashes shortly after startup.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 970
diff changeset
228
970
c8aae45afd85 Commit configuration rework (doesn't work yet, more than most probably doesn't compile either)
Teemu Piippo <crimsondusk64@gmail.com>
parents: 969
diff changeset
229 add_dependencies (ldforge revision_check config_collection)
632
63e6243b880c - migrated to CMake again
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
230 install (TARGETS ldforge RUNTIME DESTINATION bin)

mercurial