mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-08 23:44:00 +03:00
QtAutogen tests: Rename uiconly target to camel case uicOnly
Also move uicOnly sources to dedicated uicOnlySource directory.
This commit is contained in:
1 parent
cb4bc19ae1
commit
d675004dba
4 files changed
+6
-4
No files matched your search
@@ -54,6 +54,12 @@ add_executable(rccEmpty rccEmpty.cpp rccEmptyRes.qrc)
|
||||
set_property(TARGET rccEmpty PROPERTY AUTORCC ON)
|
||||
target_link_libraries(rccEmpty ${QT_QTCORE_TARGET})
|
||||
|
||||
# -- Test: UIC only
|
||||
qtx_wrap_cpp(uicOnlyMoc uicOnlySource/uiconly.h)
|
||||
add_executable(uicOnly uicOnlySource/uiconly.cpp ${uicOnlyMoc})
|
||||
set_property(TARGET uicOnly PROPERTY AUTOUIC ON)
|
||||
target_link_libraries(uicOnly ${QT_LIBRARIES})
|
||||
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
add_definitions(-DFOO -DSomeDefine="Barx")
|
||||
|
||||
@@ -147,10 +153,6 @@ target_link_libraries(empty no_link_language)
|
||||
add_library(no_link_language STATIC empty.h)
|
||||
set_target_properties(no_link_language PROPERTIES AUTOMOC TRUE)
|
||||
|
||||
qtx_wrap_cpp(uicOnlyMoc sub/uiconly.h)
|
||||
add_executable(uiconly sub/uiconly.cpp ${uicOnlyMoc})
|
||||
target_link_libraries(uiconly ${QT_LIBRARIES})
|
||||
|
||||
try_compile(RCC_DEPENDS
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/autorcc_depends"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/autorcc_depends"
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user