comparison 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
comparison
equal deleted inserted replaced
6:374a61671448 7:b8a79f9fba5a
185 185
186 foreach(package ${packages}) 186 foreach(package ${packages})
187 set(gen_sources ${gen_sources} ${CMAKE_SOURCE_DIR}/generator/typesystem_${package}.xml) 187 set(gen_sources ${gen_sources} ${CMAKE_SOURCE_DIR}/generator/typesystem_${package}.xml)
188 endforeach(package ${packages}) 188 endforeach(package ${packages})
189 189
190 MACRO(MAKE_WINDOWS_PATH pathname)
191 # An extra \\ escape is necessary to get a \ through CMake's processing.
192 STRING(REPLACE "/" "\\" ${pathname} "${${pathname}}")
193 # Enclose with UNESCAPED quotes. This means we need to escape our
194 # quotes once here, i.e. with \"
195 SET(${pathname} \"${${pathname}}\")
196 ENDMACRO(MAKE_WINDOWS_PATH)
197
198 foreach(package ${packages}) 190 foreach(package ${packages})
199 set(dgen_impl ${CMAKE_BINARY_DIR}/cpp/qt_${package}/qt_${package}.pri) 191 set(dgen_impl ${CMAKE_BINARY_DIR}/cpp/qt_${package}/qt_${package}.pri)
200 break(package ${packages}) 192 break(package ${packages})
201 endforeach(package ${packages}) 193 endforeach(package ${packages})
202 194