Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
bcafc399
Commit
bcafc399
authored
Sep 30, 2016
by
Sebastian Holtermann
Committed by
Brad King
Sep 30, 2016
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QtAutogen: Add test for empty qrc file
parent
98b11f25
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
Tests/QtAutogen/CMakeLists.txt
Tests/QtAutogen/CMakeLists.txt
+6
-0
Tests/QtAutogen/rcc_empty.cpp
Tests/QtAutogen/rcc_empty.cpp
+9
-0
Tests/QtAutogen/rcc_empty_resource.qrc
Tests/QtAutogen/rcc_empty_resource.qrc
+4
-0
No files found.
Tests/QtAutogen/CMakeLists.txt
View file @
bcafc399
...
...
@@ -44,10 +44,16 @@ else()
endif
()
# -- RCC only
add_executable
(
rcconly rcconly.cpp second_resource.qrc
)
set_property
(
TARGET rcconly PROPERTY AUTORCC ON
)
target_link_libraries
(
rcconly
${
QT_QTCORE_TARGET
}
)
# -- RCC empty
add_executable
(
rcc_empty rcc_empty.cpp rcc_empty_resource.qrc
)
set_property
(
TARGET rcc_empty PROPERTY AUTORCC ON
)
target_link_libraries
(
rcc_empty
${
QT_QTCORE_TARGET
}
)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
)
add_definitions
(
-DFOO -DSomeDefine=
"Barx"
)
...
...
Tests/QtAutogen/rcc_empty.cpp
0 → 100644
View file @
bcafc399
extern
int
qInitResources_rcc_empty_resource
();
int
main
(
int
,
char
**
)
{
// Fails to link if the symbol is not present.
qInitResources_rcc_empty_resource
();
return
0
;
}
Tests/QtAutogen/rcc_empty_resource.qrc
0 → 100644
View file @
bcafc399
<!DOCTYPE RCC>
<RCC
version=
"1.0"
>
<qresource>
</qresource>
</RCC>
Brad King
@brad.king
Mentioned in commit
8202816a
·
Oct 01, 2016
Mentioned in commit
8202816a
Mentioned in commit 8202816a36ec010b13ac212ca2efdf958828fb84
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment