Commit 7cb87d6e authored by Martin Schultz's avatar Martin Schultz

Added project folders in MSVC when grouping is enabled

required libs are not yet grouped
parent 4fe46548
......@@ -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 ()
......
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment