build: Fixed libs not being built in correct directory
This commit is contained in:
parent
1e17aa7431
commit
8760fb39cb
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user