Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
7cb87d6e
Commit
7cb87d6e
authored
May 25, 2016
by
Martin Schultz
Browse files
Added project folders in MSVC when grouping is enabled
required libs are not yet grouped
parent
4fe46548
Changes
2
Hide whitespace changes
Inline
Side-by-side
cmake/common.cmake
View file @
7cb87d6e
...
...
@@ -77,6 +77,8 @@ function (of_add_plugins)
# dependency of the plugin target.
add_custom_target
(
RSRC-
${
_plugin
}
DEPENDS
${
DATA_FILES
}
)
add_dependencies
(
Plugin-
${
_plugin
}
RSRC-
${
_plugin
}
)
# group by folder on msvc
GROUP_PROJECT
(
RSRC-
${
_plugin
}
"Ressources"
)
endif
()
endforeach
()
...
...
cmake/plugin.cmake
View file @
7cb87d6e
...
...
@@ -609,6 +609,10 @@ function (_build_openflipper_plugin plugin)
add_library
(
Plugin-
${
plugin
}
MODULE
${
uic_targets
}
${
sources
}
${
headers
}
${
moc_targets
}
${
qrc_targets
}
${${
_PLUGIN
}
_ADDSRC
}
)
#group projects by parent folder name on MSVC (used for e.g. plugincollection)
get_filename_component
(
PARENT_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
DIRECTORY
)
get_filename_component
(
PARENT_DIR_NAME
"
${
PARENT_DIR
}
"
NAME
)
GROUP_PROJECT
(
Plugin-
${
plugin
}
${
PARENT_DIR_NAME
}
)
# add this plugin to build plugin list for dependency tracking
acg_set
(
OPENFLIPPER_PLUGINS
"
${
OPENFLIPPER_PLUGINS
}
;Plugin-
${
plugin
}
"
)
acg_set
(
OPENFLIPPER_
${
_PLUGIN
}
_BUILD
"1"
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment