AutoUicExecutableConfig.cmake 567 B

123456789101112131415
  1. include(UicExample.cmake)
  2. if(NOT TARGET Qt${with_qt_version}::uic)
  3. message(FATAL_ERROR "Qt${with_qt_version}::uic not found")
  4. endif()
  5. get_target_property(uic_location Qt${with_qt_version}::uic IMPORTED_LOCATION)
  6. set_target_properties(dummy PROPERTIES AUTOUIC_OPTIONS "EXE_PATH=${uic_location}")
  7. add_executable(myuic $<$<CONFIG:Debug>:exe_debug.cpp>
  8. $<$<CONFIG:Release>:exe_release.cpp>
  9. $<$<CONFIG:RelWithDebInfo>:exe_relwithdebinfo.cpp>
  10. )
  11. set_target_properties(dummy PROPERTIES AUTOUIC_EXECUTABLE $<TARGET_FILE:myuic>)