Commit 248ae907 authored by Jan Möbius's avatar Jan Möbius

Added sourcing of cmakelists.txt from objecttypes

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7313 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 271f15d6
......@@ -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}
)
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