build: Output plugin files to correct path on build on Linux
Fixes #536
This commit is contained in:
parent
6266883e81
commit
2a76e45dc5
@ -151,9 +151,6 @@ macro(createPackage)
|
|||||||
foreach (plugin IN LISTS PLUGINS)
|
foreach (plugin IN LISTS PLUGINS)
|
||||||
add_subdirectory("plugins/${plugin}")
|
add_subdirectory("plugins/${plugin}")
|
||||||
if (TARGET ${plugin})
|
if (TARGET ${plugin})
|
||||||
set_target_properties(${plugin} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins)
|
|
||||||
set_target_properties(${plugin} PROPERTIES CARGO_BUILD_TARGET_DIR ${CMAKE_BINARY_DIR}/plugins)
|
|
||||||
|
|
||||||
get_target_property(IS_RUST_PROJECT ${plugin} RUST_PROJECT)
|
get_target_property(IS_RUST_PROJECT ${plugin} RUST_PROJECT)
|
||||||
|
|
||||||
if (IS_RUST_PROJECT)
|
if (IS_RUST_PROJECT)
|
||||||
@ -163,7 +160,7 @@ macro(createPackage)
|
|||||||
|
|
||||||
install(FILES "${PLUGIN_LOCATION}/../${plugin}.hexplug" DESTINATION "${PLUGINS_INSTALL_LOCATION}")
|
install(FILES "${PLUGIN_LOCATION}/../${plugin}.hexplug" DESTINATION "${PLUGINS_INSTALL_LOCATION}")
|
||||||
else ()
|
else ()
|
||||||
set_target_properties(${plugin} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins)
|
set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
install(TARGETS ${plugin} RUNTIME DESTINATION ${PLUGINS_INSTALL_LOCATION})
|
install(TARGETS ${plugin} RUNTIME DESTINATION ${PLUGINS_INSTALL_LOCATION})
|
||||||
elseif (APPLE)
|
elseif (APPLE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user