1
0
mirror of synced 2024-09-25 03:58:27 +02:00

build: Fixed libs not being built in correct directory

This commit is contained in:
WerWolv 2021-03-02 10:19:37 +01:00
parent 1e17aa7431
commit 8760fb39cb

View File

@ -157,10 +157,12 @@ macro(createPackage)
file(MAKE_DIRECTORY "plugins")
foreach (plugin IN LISTS PLUGINS)
add_subdirectory("plugins/${plugin}")
set_target_properties(${plugin} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins)
install(TARGETS ${plugin} DESTINATION ${PLUGINS_INSTALL_LOCATION})
add_dependencies(imhex ${plugin})
endforeach()
set_target_properties(libimhex PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
install(TARGETS libimhex DESTINATION ${CMAKE_INSTALL_LIBDIR})
if (WIN32)