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()