QtAutogen: Add source files to target when only AUTORCC is used.
Add missing entry to if condition.
This commit is contained in:
parent
71a11252e9
commit
b8877b1d62
@ -392,7 +392,8 @@ void cmQtAutoGenerators::SetupAutoGenerateTarget(cmTarget const* target)
|
|||||||
std::map<std::string, std::string> configUicOptions;
|
std::map<std::string, std::string> configUicOptions;
|
||||||
|
|
||||||
if (target->GetPropertyAsBool("AUTOMOC")
|
if (target->GetPropertyAsBool("AUTOMOC")
|
||||||
|| target->GetPropertyAsBool("AUTOUIC"))
|
|| target->GetPropertyAsBool("AUTOUIC")
|
||||||
|
|| target->GetPropertyAsBool("AUTORCC"))
|
||||||
{
|
{
|
||||||
this->SetupSourceFiles(target);
|
this->SetupSourceFiles(target);
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,9 @@ else()
|
|||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_executable(rcconly rcconly.cpp second_resource.qrc)
|
||||||
|
set_property(TARGET rcconly PROPERTY AUTORCC ON)
|
||||||
|
target_link_libraries(rcconly ${QT_QTCORE_TARGET})
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
|
9
Tests/QtAutogen/rcconly.cpp
Normal file
9
Tests/QtAutogen/rcconly.cpp
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
extern int qInitResources_second_resource();
|
||||||
|
|
||||||
|
int main(int, char**)
|
||||||
|
{
|
||||||
|
// Fails to link if the symbol is not present.
|
||||||
|
qInitResources_second_resource();
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user