git-svn-id: svn://db.shs.com.ru/libs@722 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2020-03-01 11:53:37 +00:00
parent 0d2ae8bc58
commit ff1adc8cbb
2 changed files with 15 additions and 1 deletions

View File

@@ -426,6 +426,18 @@ macro(qt_target_link_libraries _NAME)
endmacro()
# usage: qt_target_compile_definitions(...), syntax similar to original "target_compile_definitions()"
# Specify compile definitions to use when compiling a given <target>
macro(qt_target_compile_definitions _NAME)
foreach(_v ${_QT_VERSIONS_})
if (LOCAL_FOUND${_v})
set(_TARGET ${_NAME}${TARGET_SUFFIX_Qt${_v}})
target_compile_definitions(${_TARGET} ${ARGN})
endif()
endforeach()
endmacro()
# usage: qt_install(...), syntax similar to original "install()"
# install targets for founded Qt versions
# if DESTINATION set to "QtBin" files will be installed