Merge topic 'qt4-translation-includes'
7a6d279
FindQt4: Add include directories for lupdate.
This commit is contained in:
commit
d3d79c8b80
|
@ -393,7 +393,13 @@ MACRO(QT4_CREATE_TRANSLATION _qm_files)
|
|||
FOREACH(_pro_src ${_my_sources})
|
||||
SET(_pro_srcs "${_pro_srcs} \"${_pro_src}\"")
|
||||
ENDFOREACH(_pro_src ${_my_sources})
|
||||
FILE(WRITE ${_ts_pro} "SOURCES = ${_pro_srcs}")
|
||||
SET(_pro_includes)
|
||||
GET_DIRECTORY_PROPERTY(_inc_DIRS INCLUDE_DIRECTORIES)
|
||||
FOREACH(_pro_include ${_inc_DIRS})
|
||||
GET_FILENAME_COMPONENT(_abs_include "${_pro_include}" ABSOLUTE)
|
||||
SET(_pro_includes "${_pro_includes} \"${_abs_include}\"")
|
||||
ENDFOREACH(_pro_include ${CMAKE_CXX_INCLUDE_PATH})
|
||||
FILE(WRITE ${_ts_pro} "SOURCES = ${_pro_srcs}\nINCLUDEPATH = ${_pro_includes}\n")
|
||||
ENDIF(_my_sources)
|
||||
ADD_CUSTOM_COMMAND(OUTPUT ${_ts_file}
|
||||
COMMAND ${QT_LUPDATE_EXECUTABLE}
|
||||
|
|
Loading…
Reference in New Issue