CMakeLists.txt

Sun, 19 Jan 2020 02:54:48 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sun, 19 Jan 2020 02:54:48 +0200
changeset 22
6da867fa5429
parent 21
0133e565e072
child 26
3a9e761e4faa
permissions
-rw-r--r--

commit work on GL rendering

0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
1 project(ldforge)
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
2 cmake_minimum_required(VERSION 2.8.12)
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
3 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake")
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
4 include(cotire)
21
Teemu Piippo <teemu@hecknology.net>
parents: 20
diff changeset
5 set(OpenGL_GL_PREFERENCE GLVND)
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
6 find_package(Qt5Widgets REQUIRED)
6
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
7 if (Qt5Widgets_VERSION VERSION_LESS 5.5.0)
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
8 message(FATAL_ERROR "Qt5 version 5.5 required")
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
9 endif()
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
10 find_package(Qt5Core REQUIRED)
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
11 find_package(Qt5OpenGL REQUIRED)
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
12 find_package(Qt5Network REQUIRED)
6
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
13 find_package(Qt5LinguistTools REQUIRED)
17
a5111f4e6412 added teapot rendering
Teemu Piippo <teemu@hecknology.net>
parents: 16
diff changeset
14 find_package(GLUT REQUIRED)
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
15 set (CMAKE_AUTOMOC ON)
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
16 find_package(OpenGL REQUIRED)
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
17 include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
17
a5111f4e6412 added teapot rendering
Teemu Piippo <teemu@hecknology.net>
parents: 16
diff changeset
18 include_directories(${GLUT_INCLUDE_DIR})
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
19
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
20 set (LDFORGE_SOURCES
8
44679e468ba9 major update with many things
Teemu Piippo <teemu@hecknology.net>
parents: 7
diff changeset
21 src/document.cpp
3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 2
diff changeset
22 src/documentmanager.cpp
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
23 src/libraries.cpp
17
a5111f4e6412 added teapot rendering
Teemu Piippo <teemu@hecknology.net>
parents: 16
diff changeset
24 src/invert.cpp
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
25 src/main.cpp
1
51d14b0c68c0 add version
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
26 src/mainwindow.cpp
8
44679e468ba9 major update with many things
Teemu Piippo <teemu@hecknology.net>
parents: 7
diff changeset
27 src/matrix.cpp
3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 2
diff changeset
28 src/model.cpp
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 2
diff changeset
29 src/modeleditcontext.cpp
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
30 src/parser.cpp
16
Teemu Piippo <teemu@hecknology.net>
parents: 15
diff changeset
31 src/uiutilities.cpp
1
51d14b0c68c0 add version
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
32 src/version.cpp
3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 2
diff changeset
33 src/vertex.cpp
17
a5111f4e6412 added teapot rendering
Teemu Piippo <teemu@hecknology.net>
parents: 16
diff changeset
34 src/gl/compiler.cpp
a5111f4e6412 added teapot rendering
Teemu Piippo <teemu@hecknology.net>
parents: 16
diff changeset
35 src/gl/partrenderer.cpp
14
20d2ed3af73d renamings
Teemu Piippo <teemu@hecknology.net>
parents: 10
diff changeset
36 src/linetypes/comment.cpp
20d2ed3af73d renamings
Teemu Piippo <teemu@hecknology.net>
parents: 10
diff changeset
37 src/linetypes/conditionaledge.cpp
20d2ed3af73d renamings
Teemu Piippo <teemu@hecknology.net>
parents: 10
diff changeset
38 src/linetypes/edge.cpp
20d2ed3af73d renamings
Teemu Piippo <teemu@hecknology.net>
parents: 10
diff changeset
39 src/linetypes/errorline.cpp
20d2ed3af73d renamings
Teemu Piippo <teemu@hecknology.net>
parents: 10
diff changeset
40 src/linetypes/metacommand.cpp
20d2ed3af73d renamings
Teemu Piippo <teemu@hecknology.net>
parents: 10
diff changeset
41 src/linetypes/object.cpp
15
9e18ec63eec3 split quadrilateral and triangle into their own source files
Teemu Piippo <teemu@hecknology.net>
parents: 14
diff changeset
42 src/linetypes/quadrilateral.cpp
14
20d2ed3af73d renamings
Teemu Piippo <teemu@hecknology.net>
parents: 10
diff changeset
43 src/linetypes/subfilereference.cpp
15
9e18ec63eec3 split quadrilateral and triangle into their own source files
Teemu Piippo <teemu@hecknology.net>
parents: 14
diff changeset
44 src/linetypes/triangle.cpp
16
Teemu Piippo <teemu@hecknology.net>
parents: 15
diff changeset
45 src/settingseditor/keyboardshortcutseditor.cpp
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
46 src/settingseditor/librarieseditor.cpp
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
47 src/settingseditor/settingseditor.cpp
17
a5111f4e6412 added teapot rendering
Teemu Piippo <teemu@hecknology.net>
parents: 16
diff changeset
48 src/types/boundingbox.cpp
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
49 )
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
50 set (LDFORGE_HEADERS
3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 2
diff changeset
51 src/basics.h
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 2
diff changeset
52 src/colors.h
8
44679e468ba9 major update with many things
Teemu Piippo <teemu@hecknology.net>
parents: 7
diff changeset
53 src/document.h
3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 2
diff changeset
54 src/documentmanager.h
21
Teemu Piippo <teemu@hecknology.net>
parents: 20
diff changeset
55 src/header.h
17
a5111f4e6412 added teapot rendering
Teemu Piippo <teemu@hecknology.net>
parents: 16
diff changeset
56 src/invert.h
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
57 src/libraries.h
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
58 src/main.h
1
51d14b0c68c0 add version
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
59 src/mainwindow.h
20
cef43609a374 fixed build
Teemu Piippo <teemu@hecknology.net>
parents: 18
diff changeset
60 src/maths.h
8
44679e468ba9 major update with many things
Teemu Piippo <teemu@hecknology.net>
parents: 7
diff changeset
61 src/matrix.h
3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 2
diff changeset
62 src/model.h
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 2
diff changeset
63 src/modeleditcontext.h
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
64 src/parser.h
17
a5111f4e6412 added teapot rendering
Teemu Piippo <teemu@hecknology.net>
parents: 16
diff changeset
65 src/ring.h
16
Teemu Piippo <teemu@hecknology.net>
parents: 15
diff changeset
66 src/uiutilities.h
8
44679e468ba9 major update with many things
Teemu Piippo <teemu@hecknology.net>
parents: 7
diff changeset
67 src/utility.h
1
51d14b0c68c0 add version
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
68 src/version.h
3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents: 2
diff changeset
69 src/vertex.h
17
a5111f4e6412 added teapot rendering
Teemu Piippo <teemu@hecknology.net>
parents: 16
diff changeset
70 src/gl/common.h
a5111f4e6412 added teapot rendering
Teemu Piippo <teemu@hecknology.net>
parents: 16
diff changeset
71 src/gl/compiler.h
a5111f4e6412 added teapot rendering
Teemu Piippo <teemu@hecknology.net>
parents: 16
diff changeset
72 src/gl/partrenderer.h
14
20d2ed3af73d renamings
Teemu Piippo <teemu@hecknology.net>
parents: 10
diff changeset
73 src/linetypes/comment.h
20d2ed3af73d renamings
Teemu Piippo <teemu@hecknology.net>
parents: 10
diff changeset
74 src/linetypes/conditionaledge.h
20d2ed3af73d renamings
Teemu Piippo <teemu@hecknology.net>
parents: 10
diff changeset
75 src/linetypes/edge.h
20d2ed3af73d renamings
Teemu Piippo <teemu@hecknology.net>
parents: 10
diff changeset
76 src/linetypes/errorline.h
20d2ed3af73d renamings
Teemu Piippo <teemu@hecknology.net>
parents: 10
diff changeset
77 src/linetypes/metacommand.h
20d2ed3af73d renamings
Teemu Piippo <teemu@hecknology.net>
parents: 10
diff changeset
78 src/linetypes/object.h
15
9e18ec63eec3 split quadrilateral and triangle into their own source files
Teemu Piippo <teemu@hecknology.net>
parents: 14
diff changeset
79 src/linetypes/quadrilateral.h
14
20d2ed3af73d renamings
Teemu Piippo <teemu@hecknology.net>
parents: 10
diff changeset
80 src/linetypes/subfilereference.h
15
9e18ec63eec3 split quadrilateral and triangle into their own source files
Teemu Piippo <teemu@hecknology.net>
parents: 14
diff changeset
81 src/linetypes/triangle.h
16
Teemu Piippo <teemu@hecknology.net>
parents: 15
diff changeset
82 src/settingseditor/keyboardshortcutseditor.h
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
83 src/settingseditor/librarieseditor.h
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
84 src/settingseditor/settingseditor.h
17
a5111f4e6412 added teapot rendering
Teemu Piippo <teemu@hecknology.net>
parents: 16
diff changeset
85 src/types/boundingbox.h
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
86 )
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
87 set (LDFORGE_FORMS
8
44679e468ba9 major update with many things
Teemu Piippo <teemu@hecknology.net>
parents: 7
diff changeset
88 src/document.ui
1
51d14b0c68c0 add version
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
89 src/mainwindow.ui
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
90 src/settingseditor/librarieseditor.ui
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
91 src/settingseditor/settingseditor.ui
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
92 )
6
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
93
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
94 set(LDFORGE_LOCALES
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
95 locale/fi.ts
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
96 locale/sv.ts
6
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
97 )
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
98
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
99 set(LDFORGE_RESOURCES ldforge.qrc)
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
100
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
101 # Translations
6
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
102 qt5_create_translation(QM_FILES ${LDFORGE_SOURCES} ${LDFORGE_HEADERS} ${LDFORGE_FORMS} ${LDFORGE_LOCALES})
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
103 add_custom_target(translations ALL DEPENDS ${QM_FILES})
10
e249d97c7fe6 fixed translations being updated twice at the same time, that's bad
Teemu Piippo <teemu@hecknology.net>
parents: 8
diff changeset
104 add_custom_target(resources ALL DEPENDS ${LDFORGE_RESOURCES})
6
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
105 add_dependencies(resources translations)
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
106
1
51d14b0c68c0 add version
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
107 set(CMAKE_CXX_STANDARD 17)
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
108 set(CMAKE_CXX_STANDARD_REQUIRED ON)
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
109 set(CMAKE_CXX_EXTENSIONS OFF)
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
110 include_directories("${PROJECT_BINARY_DIR}")
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
111 include_directories("${PROJECT_BINARY_DIR}/src")
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
112 include_directories("${PROJECT_SOURCE_DIR}/src")
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
113 if (NOT MSVC)
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
114 if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
115 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG")
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
116 endif()
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
117 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
118 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-implicit-fallthrough")
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
119 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-noexcept-type")
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
120 endif()
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
121 qt5_add_resources(LDFORGE_QRC ${LDFORGE_RESOURCES})
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
122 qt5_wrap_ui(LDFORGE_FORMS_HEADERS ${LDFORGE_FORMS})
6
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
123
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
124 # Move languages.qrc into the build directory to bake the .qm-files into LDForge
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
125 # so that they don't have to be shipped separately
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
126 # https://stackoverflow.com/a/34798124
10
e249d97c7fe6 fixed translations being updated twice at the same time, that's bad
Teemu Piippo <teemu@hecknology.net>
parents: 8
diff changeset
127 # https://gist.github.com/giraldeau/546ba5512a74dfe9d8ea0862d66db412
6
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
128 set(LANGUAGES_QRC "languages.qrc")
10
e249d97c7fe6 fixed translations being updated twice at the same time, that's bad
Teemu Piippo <teemu@hecknology.net>
parents: 8
diff changeset
129 configure_file(${LANGUAGES_QRC} ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
6
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
130 qt5_add_resources(LDFORGE_QM_RC_FILE ${CMAKE_CURRENT_BINARY_DIR}/${LANGUAGES_QRC})
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
131
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
132 add_executable(ldforge WIN32
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
133 ${LDFORGE_SOURCES}
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
134 ${LDFORGE_HEADERS}
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
135 ${LDFORGE_RESOURCES}
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
136 ${LDFORGE_QRC}
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
137 ${LDFORGE_QM_RC_FILE}
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
138 ${LDFORGE_FORMS_HEADERS}
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
139 )
6
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
140
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
141 set_source_files_properties(${LDFORGE_HEADERS} PROPERTIES HEADER_FILE_ONLY TRUE)
6
73e448b2943d language support
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
142 set_source_files_properties(${LDFORGE_RESOURCES} PROPERTIES HEADER_FILE_ONLY TRUE)
0
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
143 set_target_properties(ldforge PROPERTIES AUTOMOC 1)
f9f4d4d6f162 initial commit
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
144 target_link_libraries(ldforge Qt5::Widgets Qt5::Network Qt5::OpenGL ${OPENGL_LIBRARIES})
17
a5111f4e6412 added teapot rendering
Teemu Piippo <teemu@hecknology.net>
parents: 16
diff changeset
145 target_link_libraries(ldforge ${GLUT_LIBRARIES})
7
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
146 cotire(ldforge)
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
147
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
148 # Collect the current hg revision into hginfo.h
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
149 add_custom_target(revision_check ALL
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
150 COMMAND python3 "${CMAKE_SOURCE_DIR}/tools/updaterevision.py" --cwd "$(CMAKE_SOURCE_DIR)" hginfo.h
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
151 WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
152 add_dependencies(ldforge revision_check)
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
153
68443f5be176 added the settings editor
Teemu Piippo <teemu@hecknology.net>
parents: 6
diff changeset
154 install(TARGETS ldforge RUNTIME DESTINATION bin)

mercurial