Properly set the build directory of all plugins and libimhex
This commit is contained in:
parent
744b9f574c
commit
0ab565ab02
@ -139,20 +139,13 @@ endmacro()
|
|||||||
|
|
||||||
macro(createPackage)
|
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}")
|
||||||
add_custom_command(TARGET imhex POST_BUILD
|
set_target_properties(${plugin} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins)
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy
|
add_dependencies(imhex ${plugin})
|
||||||
$<TARGET_FILE:${plugin}>
|
|
||||||
$<TARGET_FILE_DIR:imhex>/plugins/$<TARGET_FILE_NAME:${plugin}>
|
|
||||||
DEPENDS ${plugin})
|
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
add_custom_command(TARGET imhex POST_BUILD
|
set_target_properties(libimhex PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
||||||
$<TARGET_FILE:libimhex>
|
|
||||||
$<TARGET_FILE_DIR:imhex>)
|
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
# Install binaries directly in the prefix, usually C:\Program Files\ImHex.
|
# Install binaries directly in the prefix, usually C:\Program Files\ImHex.
|
||||||
|
Loading…
Reference in New Issue
Block a user