Revert the origin-tracking infrastructure from commit 98093c45 (QtAutoUic: Add INTERFACE_AUTOUIC_OPTIONS target property., 2013-11-20). Use the compatibility-tracking for compatible strings instead. If two different dependencies require different AUTOUIC_OPTIONS, cmake will now appropriately issue an error.
23 lines
502 B
CMake
23 lines
502 B
CMake
|
|
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)
|
|
|
|
add_library(KI18n INTERFACE)
|
|
set_property(TARGET KI18n APPEND PROPERTY
|
|
INTERFACE_AUTOUIC_OPTIONS -tr ki18n
|
|
)
|
|
|
|
add_library(OtherI18n INTERFACE)
|
|
set_property(TARGET OtherI18n APPEND PROPERTY
|
|
INTERFACE_AUTOUIC_OPTIONS -tr otheri18n
|
|
)
|
|
|
|
add_library(LibWidget empty.cpp)
|
|
target_link_libraries(LibWidget KI18n OtherI18n ${QT_GUI_TARGET})
|