diff options
Diffstat (limited to 'Tests/RunCMake/Autogen_4/AutoUicExecutableConfig.cmake')
-rw-r--r-- | Tests/RunCMake/Autogen_4/AutoUicExecutableConfig.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/RunCMake/Autogen_4/AutoUicExecutableConfig.cmake b/Tests/RunCMake/Autogen_4/AutoUicExecutableConfig.cmake new file mode 100644 index 0000000..72a0d9f --- /dev/null +++ b/Tests/RunCMake/Autogen_4/AutoUicExecutableConfig.cmake @@ -0,0 +1,15 @@ +include(UicExample.cmake) + +if(NOT TARGET Qt${with_qt_version}::uic) + message(FATAL_ERROR "Qt${with_qt_version}::uic not found") +endif() + +get_target_property(uic_location Qt${with_qt_version}::uic IMPORTED_LOCATION) +set_target_properties(dummy PROPERTIES AUTOUIC_OPTIONS "EXE_PATH=${uic_location}") + +add_executable(myuic $<$<CONFIG:Debug>:../Autogen_common/exe_debug.cpp> + $<$<CONFIG:Release>:../Autogen_common/exe_release.cpp> + $<$<CONFIG:RelWithDebInfo>:../Autogen_common/exe_relwithdebinfo.cpp> +) + +set_target_properties(dummy PROPERTIES AUTOUIC_EXECUTABLE $<TARGET_FILE:myuic>) |