Mercurial > projects > qtd
comparison generator/CMakeLists.txt @ 403:8564ab82ea42
merge
author | Eldar Insafutdinov |
---|---|
date | Thu, 17 Mar 2011 19:46:11 +0000 |
parents | a81c53f7b83b |
children |
comparison
equal
deleted
inserted
replaced
402:e67ce7c21758 | 403:8564ab82ea42 |
---|---|
198 if( NOT "${packages_in_build_txt}" STREQUAL "${packages}" | 198 if( NOT "${packages_in_build_txt}" STREQUAL "${packages}" |
199 OR NOT EXISTS ${dgen_build_conf} | 199 OR NOT EXISTS ${dgen_build_conf} |
200 OR NOT EXISTS ${jambi_inc}) | 200 OR NOT EXISTS ${jambi_inc}) |
201 file(REMOVE ${dgen_build_conf}) | 201 file(REMOVE ${dgen_build_conf}) |
202 file(REMOVE ${jambi_inc}) | 202 file(REMOVE ${jambi_inc}) |
203 | |
204 # Explicitly include qglobal.h before all the »master includes« to make | |
205 # sure Q_CORE_EXPORT and other macros are already defined for all | |
206 # processed headers. Otherwise, the parser would choke on classes in files | |
207 # included before "qglobal.h" in <QtCore/QtCore> using one of these macros | |
208 # (e.g. QXmlStreamReader). | |
209 file(APPEND ${jambi_inc} "#include <${QT_QTCORE_INCLUDE_DIR}/qglobal.h>\n") | |
210 | |
203 file(APPEND ${dgen_build_conf} "<typesystem>\n") | 211 file(APPEND ${dgen_build_conf} "<typesystem>\n") |
204 foreach(package_normal ${packages}) | 212 foreach(package_normal ${packages}) |
205 string(TOLOWER ${package_normal} package) | 213 string(TOLOWER ${package_normal} package) |
206 string(TOUPPER ${package_normal} package_upper) | 214 string(TOUPPER ${package_normal} package_upper) |
207 file(APPEND ${dgen_build_conf} " <load-typesystem name=\"typesystem_${package}.xml\" generate=\"yes\" />\n") | 215 file(APPEND ${dgen_build_conf} " <load-typesystem name=\"typesystem_${package}.xml\" generate=\"yes\" />\n") |
231 endforeach() | 239 endforeach() |
232 mark_as_advanced(d_inc_file_found) | 240 mark_as_advanced(d_inc_file_found) |
233 set(d_inc_file_found 1) | 241 set(d_inc_file_found 1) |
234 | 242 |
235 foreach(path ${QT_INCLUDES}) | 243 foreach(path ${QT_INCLUDES}) |
236 set(inc_paths_tmp ${path}${sep}) | 244 set(inc_paths_tmp ${path}${sep}${inc_paths_tmp}) |
237 endforeach() | 245 endforeach() |
238 set(inc_paths ${inc_paths}${sep}${inc_paths_tmp}) | 246 set(inc_paths ${inc_paths}${sep}${inc_paths_tmp}) |
239 | 247 |
240 if(${CMAKE_BINARY_DIR} STREQUAL ${CMAKE_SOURCE_DIR}) | 248 if(${CMAKE_BINARY_DIR} STREQUAL ${CMAKE_SOURCE_DIR}) |
241 set(out_dir ${CMAKE_SOURCE_DIR}) | 249 set(out_dir ${CMAKE_SOURCE_DIR}) |