1
0
mirror of synced 2024-11-12 10:10:53 +01: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") file(MAKE_DIRECTORY "plugins")
foreach (plugin IN LISTS PLUGINS) foreach (plugin IN LISTS PLUGINS)
add_subdirectory("plugins/${plugin}") add_subdirectory("plugins/${plugin}")
set_target_properties(${plugin} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins)
install(TARGETS ${plugin} DESTINATION ${PLUGINS_INSTALL_LOCATION}) install(TARGETS ${plugin} DESTINATION ${PLUGINS_INSTALL_LOCATION})
add_dependencies(imhex ${plugin}) add_dependencies(imhex ${plugin})
endforeach() endforeach()
set_target_properties(libimhex PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
install(TARGETS libimhex DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(TARGETS libimhex DESTINATION ${CMAKE_INSTALL_LIBDIR})
if (WIN32) if (WIN32)