annotate generator/CMakeLists.txt @ 7:b8a79f9fba5a

More fixes and cleanups in CMake build script.
author SokoL_SD
date Thu, 14 May 2009 08:36:04 +0000
parents 0a29ce1ae854
children 16eec94c5b33
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
1 PROJECT(generator CXX C)
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
2 cmake_minimum_required(VERSION 2.6)
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
3 FIND_PACKAGE(Qt4 REQUIRED)
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
4
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
5 ## Sources
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
6 set(srcs
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
7 classlistgenerator.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
8 cppgenerator.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
9 cppheadergenerator.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
10 cppimplgenerator.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
11 docparser.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
12 generatorsetd.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
13 dgenerator.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
14 jumptable.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
15 metainfogenerator.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
16 metajavabuilder.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
17 qdocgenerator.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
18 uiconverter.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
19 containergenerator.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
20
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
21 generator.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
22 main.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
23 reporthandler.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
24 typeparser.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
25 typesystem.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
26 asttoxml.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
27 fileout.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
28 generatorset.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
29 metajava.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
30 customtypes.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
31 abstractmetabuilder.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
32 abstractmetalang.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
33 prigenerator.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
34
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
35 # rxx
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
36 parser/ast.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
37 parser/lexer.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
38 parser/list.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
39 parser/parser.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
40 parser/smallobject.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
41 parser/control.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
42 parser/visitor.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
43 parser/default_visitor.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
44 parser/dumptree.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
45 parser/tokens.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
46 parser/binder.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
47 parser/codemodel.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
48 parser/type_compiler.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
49 parser/name_compiler.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
50 parser/declarator_compiler.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
51 parser/class_compiler.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
52 parser/codemodel_finder.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
53 parser/compiler_utils.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
54
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
55 ## rpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
56 parser/rpp/preprocessor.cpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
57 )
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
58 ## Moc headers
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
59 set(moc_hdrs
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
60 classlistgenerator.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
61 cppgenerator.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
62 cppheadergenerator.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
63 cppimplgenerator.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
64 docparser.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
65 generatorsetd.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
66 dgenerator.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
67 jumptable.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
68 metainfogenerator.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
69 metajavabuilder.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
70 qdocgenerator.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
71 uiconverter.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
72 containergenerator.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
73 generator.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
74 main.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
75 reporthandler.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
76 typeparser.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
77 typesystem.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
78 asttoxml.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
79 fileout.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
80 generatorset.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
81 metajava.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
82 customtypes.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
83 abstractmetabuilder.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
84 abstractmetalang.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
85 prigenerator.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
86
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
87 ## rxx
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
88 parser/ast.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
89 parser/lexer.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
90 parser/list.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
91 parser/parser.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
92 parser/rxx_allocator.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
93 parser/rpp-allocator.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
94 parser/smallobject.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
95 parser/tokens.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
96 parser/symbol.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
97 parser/control.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
98 parser/visitor.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
99 parser/default_visitor.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
100 parser/dumptree.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
101 parser/binder.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
102 parser/codemodel.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
103 parser/codemodel_pointer.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
104 parser/codemodel_fwd.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
105 parser/type_compiler.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
106 parser/name_compiler.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
107 parser/declarator_compiler.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
108 parser/class_compiler.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
109 parser/codemodel_finder.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
110 parser/compiler_utils.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
111
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
112 # rpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
113 parser/rpp/pp-cctype.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
114 parser/rpp/pp-engine-bits.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
115 parser/rpp/pp-engine.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
116 parser/rpp/pp-environment.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
117 parser/rpp/pp-fwd.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
118 parser/rpp/pp-internal.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
119 parser/rpp/pp-iterator.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
120 parser/rpp/pp-macro-expander.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
121 parser/rpp/pp-macro.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
122 parser/rpp/pp-scanner.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
123 parser/rpp/pp-string.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
124 parser/rpp/pp-symbol.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
125 parser/rpp/pp.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
126 parser/rpp/preprocessor.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
127
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
128 )
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
129
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
130 ## Resources.
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
131 set(res_files
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
132 generator.qrc
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
133 )
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
134
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
135 #win32-msvc2005:{
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
136 # QMAKE_CXXFLAGS += -wd4996
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
137 # QMAKE_CFLAGS += -wd4996
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
138 #}
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
139
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
140 #win32-msvc.net {
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
141 # QMAKE_CXXFLAGS += /Zm500
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
142 # QMAKE_CXXFLAGS -= -Zm200
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
143 # QMAKE_CFLAGS -= -Zm200
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
144 #}
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
145
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
146 ## Includes path.
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
147 set(inc_paths
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
148 ${CMAKE_CURRENT_SOURCE_DIR}
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
149 ${CMAKE_CURRENT_SOURCE_DIR}/../common
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
150 ${CMAKE_CURRENT_SOURCE_DIR}/parser
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
151 ${CMAKE_CURRENT_SOURCE_DIR}/parser/include
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
152 ${CMAKE_CURRENT_SOURCE_DIR}/parser/rpp
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
153 )
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
154
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
155 add_definitions(-DRXX_ALLOCATOR_INIT_0)
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
156
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
157 ## Build project
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
158 find_package (Qt4 REQUIRED)
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
159 set (QT_USE_QTMAIN true)
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
160 set (QT_USE_QTGUI false)
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
161 set (QT_USE_QTXML true)
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
162 include(${QT_USE_FILE} ${CMAKE_CURRENT_SOURCE_DIR})
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
163
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
164 set(inc_paths
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
165 ${inc_paths}
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
166 ${QT_INCLUDES}
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
167 )
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
168 set(lib_paths
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
169 ${lib_paths}
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
170 ${QT_LIBRARY_DIR}
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
171 )
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
172 set(libs
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
173 ${QT_LIBRARIES}
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
174 )
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
175
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
176 qt4_wrap_cpp(moc_srcs ${moc_hdrs})
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
177 qt4_add_resources(res_wrapped_files ${res_files})
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
178
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
179 set (all_srcs
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
180 ${srcs} ${moc_srcs}
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
181 ${res_wrapped_files})
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
182 include_directories(${inc_paths})
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
183 add_executable(generator ${all_srcs} )
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
184 target_link_libraries(generator ${libs})
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
185
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
186 foreach(package ${packages})
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
187 set(gen_sources ${gen_sources} ${CMAKE_SOURCE_DIR}/generator/typesystem_${package}.xml)
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
188 endforeach(package ${packages})
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
189
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
190 foreach(package ${packages})
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
191 set(dgen_impl ${CMAKE_BINARY_DIR}/cpp/qt_${package}/qt_${package}.pri)
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
192 break(package ${packages})
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
193 endforeach(package ${packages})
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
194
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
195 add_custom_command(OUTPUT ${dgen_impl}
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
196 COMMAND ${CMAKE_COMMAND} -E remove -f ${dgen_impl}
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
197 COMMAND "generator"
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
198 ARGS ${GEN_OPT} --qt-include-directory=${QT_INCLUDE_DIR} --output-directory=../
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
199 --source-directory=${CMAKE_SOURCE_DIR}/generator
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
200 qtjambi_masterinclude.h
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
201 build_opengl.txt
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
202 COMMENT "Generating binding..."
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
203 DEPENDS generator ${gen_sources}
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
204 )
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
205 add_custom_target(dgen DEPENDS ${dgen_impl} COMMENT "")
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
206
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
207 macro(add_sources_for_generating)
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
208 foreach(source ${ARGN})
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
209 add_custom_command(OUTPUT "${source}"
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
210 COMMAND ""
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
211 ARGS ""
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
212 DEPENDS ${dgen_impl}
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
213 COMMENT ""
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
214 )
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
215 endforeach(source ${allcppsources})
0a29ce1ae854 CMake build script.
SokoL_SD
parents:
diff changeset
216 endmacro(add_sources_for_generating)