From 9f61f046802e644b67e93f2f9bc2b31a721b4778 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 25 Aug 2021 13:46:35 +0200 Subject: [PATCH] build: Install plugins to correct folder on Linux --- cmake/build_helpers.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index f38f92140..d4d9d683c 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -160,7 +160,12 @@ macro(createPackage) add_subdirectory("plugins/${plugin}") if (TARGET ${plugin}) set_target_properties(${plugin} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins) - install(TARGETS ${plugin} RUNTIME DESTINATION ${PLUGINS_INSTALL_LOCATION}) + if (WIN32) + install(TARGETS ${plugin} RUNTIME DESTINATION ${PLUGINS_INSTALL_LOCATION}) + else () + install(TARGETS ${plugin} LIBRARY DESTINATION ${PLUGINS_INSTALL_LOCATION}) + endif () + add_dependencies(imhex ${plugin}) endif () endforeach()