diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,6 +46,11 @@ # Generate the tiles with the tilecreator at compile time # if this option is set, srtm.jpg will not be installed but the generated tiles instead option(MOBILE "Create a Marble version optimized for handheld devices") +option(WITH_DESIGNER_PLUGIN "Enable the compilation of the designer plugin" ON) +option(WITH_POSITION_PROVIDER_PLUGIN "Compiles the position provider plugins" ON) +option(WITH_RENDER_PLUGIN "Compiles the render plugin" ON) +option(WITH_RUNNER_PLUGIN "Compiles the runner plugin" ON) +option(WITH_TEMPLATES_PLUGIN "Compiles the templates plugin" ON) ####################################################### # Specific options for building for different platforms diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -1,8 +1,18 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL Android) - add_subdirectory( designer ) - add_subdirectory( templates ) + if(WITH_DESIGNER_PLUGIN) + add_subdirectory( designer ) + endif() + if(WITH_TEMPLATES_PLUGIN) + add_subdirectory( templates ) + endif() endif() -add_subdirectory( render ) -add_subdirectory( positionprovider ) -add_subdirectory( runner ) +if(WITH_RENDER_PLUGIN) + add_subdirectory( render ) +endif() +if(WITH_POSITION_PROVIDER_PLUGIN) + add_subdirectory( positionprovider ) +endif() +if(WITH_RUNNER_PLUGIN) + add_subdirectory( runner ) +endif()