From b7480bd0ceb01f2c0140f7d7432302f071615a68 Mon Sep 17 00:00:00 2001 From: milerius Date: Fri, 3 Aug 2018 01:23:38 +0200 Subject: [PATCH] add new option in CMakeLists.txt --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b1ae6a9..3702ec5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,7 @@ enable_testing() option(SHIVA_BUILD_TESTS "Build tests of shiva C++ engine" OFF) option(SHIVA_BUILD_EXAMPLES "Build examples of shiva C++ engine" OFF) option(SHIVA_USE_SFML_AS_RENDERER "Build shiva with SFML rendering" OFF) +option(SHIVA_INSTALL_PLUGINS "Build shiva with SFML rendering" OFF) option(DISABLE_INSTALL_SHIVA_CORE "Disable install main targets" OFF) option(USE_PROJECT_IN_AN_IDE "Workaround for install header only library option, put it to ON if u use CLION" OFF) @@ -65,7 +66,7 @@ target_link_libraries(shiva INTERFACE ##! Install if (NOT DISABLE_INSTALL_SHIVA_CORE) - if (NOT USE_PROJECT_IN_AN_IDE) + if (NOT USE_PROJECT_IN_AN_IDE AND NOT SHIVA_INSTALL_PLUGINS) include(GNUInstallDirs) include(CMakePackageConfigHelpers)