diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2012-07-22 21:40:22 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-25 13:59:15 +0200 |
commit | 189a5d8af12788a30121210066de647a6dc3a167 (patch) | |
tree | aebc213c29a70d00e704f9d9679a1f47622c7b5a /src/widgets/Qt5WidgetsMacros.cmake | |
parent | 95191658d0b71017c8fcb19058ed900e97d8f81c (diff) |
Create IMPORTED CMake targets for executables.
Although IMPORTED executables are not extra special, this is more future-proof
in terms of both future CMake features and future our needs - it is possible
that we would want to add a property to an executable at TARGET scope, which
would not be possible if it is just a path.
Change-Id: I649c601e004b21603c5fa97de0b7c397813ed68d
Reviewed-by: Brad King <brad.king@kitware.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/widgets/Qt5WidgetsMacros.cmake')
-rw-r--r-- | src/widgets/Qt5WidgetsMacros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/Qt5WidgetsMacros.cmake b/src/widgets/Qt5WidgetsMacros.cmake index 88f259191e..f5e7b7f050 100644 --- a/src/widgets/Qt5WidgetsMacros.cmake +++ b/src/widgets/Qt5WidgetsMacros.cmake @@ -56,7 +56,7 @@ function(QT5_WRAP_UI outfiles ) get_filename_component(infile ${it} ABSOLUTE) set(outfile ${CMAKE_CURRENT_BINARY_DIR}/ui_${outfile}.h) add_custom_command(OUTPUT ${outfile} - COMMAND ${QT_UIC_EXECUTABLE} + COMMAND ${Qt5Widgets_UIC_EXECUTABLE} ARGS ${ui_options} -o ${outfile} ${infile} MAIN_DEPENDENCY ${infile} VERBATIM) list(APPEND ${outfiles} ${outfile}) |