summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/UicInterface
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2018-11-27 11:41:20 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2018-11-28 11:51:19 (GMT)
commit2ef640819fcf9ca741b3ebcb543b9a01ffb40689 (patch)
tree22c385086aa71e29601caba27d94593ea642407b /Tests/QtAutogen/UicInterface
parentb736f5f269a1d04532901326304597a284af2c70 (diff)
downloadCMake-2ef640819fcf9ca741b3ebcb543b9a01ffb40689.zip
CMake-2ef640819fcf9ca741b3ebcb543b9a01ffb40689.tar.gz
CMake-2ef640819fcf9ca741b3ebcb543b9a01ffb40689.tar.bz2
Autogen: Tests: Differentiate between Qt core and Qt gui tests
Some AUTOGEN tests require the Qt core libraries only and some require the Qt gui libraries to function. This replaces the AutogenTest.cmake script with two specific AutogenCoreTest.cmake and AutogenGuiTest.cmake scripts that are included on demand.
Diffstat (limited to 'Tests/QtAutogen/UicInterface')
-rw-r--r--Tests/QtAutogen/UicInterface/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/QtAutogen/UicInterface/CMakeLists.txt b/Tests/QtAutogen/UicInterface/CMakeLists.txt
index e0421a2..e022764 100644
--- a/Tests/QtAutogen/UicInterface/CMakeLists.txt
+++ b/Tests/QtAutogen/UicInterface/CMakeLists.txt
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.10)
project(UicInterface)
-include("../AutogenTest.cmake")
+include("../AutogenGuiTest.cmake")
set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
set(CMAKE_AUTOMOC ON)
@@ -43,12 +43,12 @@ set(INC_DIR "include" )
endif()
add_library(LibWidget libwidget.cpp)
-target_link_libraries(LibWidget KI18n ${QT_QTGUI_TARGET})
+target_link_libraries(LibWidget KI18n ${QT_LIBRARIES})
set_property(TARGET LibWidget PROPERTY NO_KUIT_SEMANTIC ON)
set_property(TARGET LibWidget PROPERTY TRANSLATION_DOMAIN customdomain)
add_library(MyWidget mywidget.cpp)
-target_link_libraries(MyWidget KI18n ${QT_QTGUI_TARGET})
+target_link_libraries(MyWidget KI18n ${QT_LIBRARIES})
add_executable(QtAutoUicInterface main.cpp)
target_compile_definitions(QtAutoUicInterface