Commit 322d106b authored by Jan Möbius's avatar Jan Möbius
Browse files

Dennis:

Added-support-for-source-list-filtering-to-plugin-ma

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5848 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6dad541a
include(plugin) include(plugin)
macro (of_list_filter _list)
if (APPLE OR NOT Qwt5_Qt4_FOUND)
foreach (_element ${${_list}})
if (_element MATCHES "QwtFunctionPlot.*\\.(cc|hh|ui)$")
list (REMOVE_ITEM ${_list} ${_element})
endif ()
endforeach ()
endif ()
endmacro ()
if (NOT APPLE) if (NOT APPLE)
find_package(Qwt5) find_package(Qwt5)
endif () endif ()
......
...@@ -17,6 +17,11 @@ ...@@ -17,6 +17,11 @@
# LIBRARIES = libraries added to link command # LIBRARIES = libraries added to link command
# LIBDIRS = additional link directories # LIBDIRS = additional link directories
# INCDIRS = additional include directories # INCDIRS = additional include directories
#
# Plugins can implement a of_list_filter ("listname") macro to filter out
# unneeded headers, sources and ui files from the autogenerated
# build sources lists (see common.cmake drop_templates macro)
#
include (common) include (common)
...@@ -129,6 +134,13 @@ function (_build_openflipper_plugin plugin) ...@@ -129,6 +134,13 @@ function (_build_openflipper_plugin plugin)
drop_templates (sources) drop_templates (sources)
if (COMMAND of_list_filter)
of_list_filter (headers)
of_list_filter (sources)
of_list_filter (ui)
endif ()
qt4_autouic (uic_targets ${ui}) qt4_autouic (uic_targets ${ui})
qt4_automoc (moc_targets ${headers}) qt4_automoc (moc_targets ${headers})
......
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