build: Fix library plugin install path
This commit is contained in:
parent
87155f98b3
commit
40e66313a9
@ -157,8 +157,14 @@ macro(createPackage)
|
|||||||
set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins)
|
set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins)
|
||||||
endif ()
|
endif ()
|
||||||
else ()
|
else ()
|
||||||
install(TARGETS ${plugin} LIBRARY DESTINATION ${PLUGINS_INSTALL_LOCATION})
|
|
||||||
endif ()
|
get_target_property(target_type ${plugin} TYPE)
|
||||||
|
if (target_type STREQUAL "SHARED_LIBRARY")
|
||||||
|
install(TARGETS ${plugin} RUNTIME DESTINATION ${PLUGINS_INSTALL_LOCATION})
|
||||||
|
else ()
|
||||||
|
install(TARGETS ${plugin} LIBRARY DESTINATION ${PLUGINS_INSTALL_LOCATION})
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
add_dependencies(imhex_all ${plugin})
|
add_dependencies(imhex_all ${plugin})
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user