From 248ae907a6930d61218118b75644706ca6db2f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Mon, 5 Oct 2009 10:07:32 +0000 Subject: [PATCH] Added sourcing of cmakelists.txt from objecttypes git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7313 383ad7c9-94d9-4d36-a494-682f7c89f535 --- PluginLib/CMakeLists.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/PluginLib/CMakeLists.txt b/PluginLib/CMakeLists.txt index ec0f3564..c479b270 100644 --- a/PluginLib/CMakeLists.txt +++ b/PluginLib/CMakeLists.txt @@ -47,6 +47,22 @@ acg_append_files (ui "*.ui" ${directories}) acg_append_files_recursive (headers "*.hh" ${CMAKE_SOURCE_DIR}/ObjectTypes) acg_append_files_recursive (sources "*.cc" ${CMAKE_SOURCE_DIR}/ObjectTypes) +set ( ADDITIONAL_PLUGINLIB_LIBS "") + +# search all ObjectTypes in the ObjectType directory for additional build information +file ( + GLOB _plugin_buildinfos + RELATIVE "${CMAKE_SOURCE_DIR}" + "${CMAKE_SOURCE_DIR}/ObjectTypes/*/CMakeLists.txt" +) + +# add all found libs to the build +foreach ( _buildInfo ${_plugin_buildinfos}) + message(status "Getting info from ${CMAKE_SOURCE_DIR}/${_buildInfo}" ) + include ("${CMAKE_SOURCE_DIR}/${_buildInfo}") +endforeach () + + # remove template cc files from source file list acg_drop_templates (sources) @@ -70,4 +86,5 @@ target_link_libraries (PluginLib ${GLEW_LIBRARY} ${GLUT_LIBRARIES} ${FTGL_LIBS} + ${ADDITIONAL_PLUGINLIB_LIBS} ) -- GitLab