Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenFlipper-Free
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenFlipper-Free
OpenFlipper-Free
Commits
9c4ee991
Commit
9c4ee991
authored
Oct 18, 2016
by
Martin Heistermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: workaround for qtcreator bug
parent
16612e64
Pipeline
#3285
passed with stage
in 82 minutes and 29 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
ACG/CMakeLists.txt
ACG/CMakeLists.txt
+1
-0
CMakeLists.txt
CMakeLists.txt
+16
-0
OpenFlipper/cmake/plugin.cmake
OpenFlipper/cmake/plugin.cmake
+2
-0
No files found.
ACG/CMakeLists.txt
View file @
9c4ee991
...
...
@@ -109,6 +109,7 @@ acg_append_files (sources "*.cc" ${directories})
acg_append_files
(
ui
"*.ui"
${
directories
}
)
acg_append_files
(
qrc
"*.qrc"
${
directories
}
.
)
target_sources
(
_qtcreator_add_files PUBLIC
${
sources
}
${
headers
}
)
# remove template cc files from source file list
acg_drop_templates
(
sources
)
...
...
CMakeLists.txt
View file @
9c4ee991
...
...
@@ -79,6 +79,22 @@ include (MSVCMacros)
acg_get_version
(
OpenFlipper
)
# ========================================================================
# qtcrator workaround for missing files in project
# ========================================================================
# qtcreator (4.0.3) does not include some header files and *T.cc in its
# project structure. The issue is well-known, this is a workaround.
# Unfortunately I could not find a workaround that does not involve adding
# a dummy target that is visible in the target list.
# To force adding files to the project structure, use
# target_sources(_qtcreator_add_files PUBLIC ${EXTRA_FILES})
# in your CMakeLists.txt
add_library
(
_qtcreator_add_files CMakeLists.txt
)
# dummy file that always exists
set_target_properties
(
_qtcreator_add_files PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1
)
# ========================================================================
# Branding
# ========================================================================
...
...
OpenFlipper/cmake/plugin.cmake
View file @
9c4ee991
...
...
@@ -576,6 +576,8 @@ function (_build_openflipper_plugin plugin)
acg_append_files
(
ui
"*.ui"
${
directories
}
)
acg_append_files
(
qrc
"*.qrc"
${
directories
}
)
target_sources
(
_qtcreator_add_files PUBLIC
${
sources
}
${
headers
}
)
# remove template cc files from source file list
acg_drop_templates
(
sources
)
...
...
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