summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Autogen/AutoUicExecutableConfig.cmake
blob: 55b88b88ef967f528b0ac5a57e1c7307facddcb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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>:exe_debug.cpp>
                     $<$<CONFIG:Release>:exe_release.cpp>
                     $<$<CONFIG:RelWithDebInfo>:exe_relwithdebinfo.cpp>
)

set_target_properties(dummy PROPERTIES AUTOUIC_EXECUTABLE $<TARGET_FILE:myuic>)