Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
André Pedro
CMake
Commits
bcafc399
Commit
bcafc399
authored
8 years ago
by
Sebastian Holtermann
Committed by
Brad King
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
QtAutogen: Add test for empty qrc file
parent
98b11f25
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Tests/QtAutogen/CMakeLists.txt
+6
-0
6 additions, 0 deletions
Tests/QtAutogen/CMakeLists.txt
Tests/QtAutogen/rcc_empty.cpp
+9
-0
9 additions, 0 deletions
Tests/QtAutogen/rcc_empty.cpp
Tests/QtAutogen/rcc_empty_resource.qrc
+4
-0
4 additions, 0 deletions
Tests/QtAutogen/rcc_empty_resource.qrc
with
19 additions
and
0 deletions
Tests/QtAutogen/CMakeLists.txt
+
6
−
0
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"
)
...
...
This diff is collapsed.
Click to expand it.
Tests/QtAutogen/rcc_empty.cpp
0 → 100644
+
9
−
0
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
;
}
This diff is collapsed.
Click to expand it.
Tests/QtAutogen/rcc_empty_resource.qrc
0 → 100644
+
4
−
0
View file @
bcafc399
<!DOCTYPE RCC>
<RCC
version=
"1.0"
>
<qresource>
</qresource>
</RCC>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment