1
0
mirror of synced 2024-11-12 10:10:53 +01:00

build: Install plugins to correct folder on Linux

This commit is contained in:
WerWolv 2021-08-25 13:46:35 +02:00
parent 5b148f2d7a
commit 9f61f04680

View File

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