瀏覽代碼

Tests: simplify Qt4 target usage

This content was copied from another test where both the Core and Gui
targets are used.
Stephen Kelly 12 年之前
父節點
當前提交
28c865bb22
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      Tests/RunCMake/CompatibleInterface/AutoUic.cmake

+ 1 - 4
Tests/RunCMake/CompatibleInterface/AutoUic.cmake

@@ -1,9 +1,6 @@
 
 find_package(Qt4 REQUIRED)
 
-set(QT_CORE_TARGET Qt4::QtCore)
-set(QT_GUI_TARGET Qt4::QtGui)
-
 set(CMAKE_AUTOUIC ON)
 
 set(CMAKE_DEBUG_TARGET_PROPERTIES AUTOUIC_OPTIONS)
@@ -19,4 +16,4 @@ set_property(TARGET OtherI18n APPEND PROPERTY
 )
 
 add_library(LibWidget empty.cpp)
-target_link_libraries(LibWidget KI18n OtherI18n ${QT_GUI_TARGET})
+target_link_libraries(LibWidget KI18n OtherI18n Qt4::QtGui)