mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-14 14:36:39 +02:00
Merge pull request #6658 from AndrewMeadows/linux-input-plugins
correct input plugin load path on linux
This commit is contained in:
commit
13a1eec48c
1 changed files with 13 additions and 7 deletions
|
@ -17,17 +17,23 @@ macro(SETUP_HIFI_PLUGIN)
|
||||||
set(PLUGIN_PATH "plugins")
|
set(PLUGIN_PATH "plugins")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
|
set(PLUGIN_FULL_PATH "${CMAKE_BINARY_DIR}/interface/${PLUGIN_PATH}/")
|
||||||
|
else()
|
||||||
|
set(PLUGIN_FULL_PATH "${CMAKE_BINARY_DIR}/interface/$<CONFIGURATION>/${PLUGIN_PATH}/")
|
||||||
|
endif()
|
||||||
|
|
||||||
# create the destination for the plugin binaries
|
# create the destination for the plugin binaries
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET ${TARGET_NAME} POST_BUILD
|
TARGET ${TARGET_NAME} POST_BUILD
|
||||||
COMMAND "${CMAKE_COMMAND}" -E make_directory
|
COMMAND "${CMAKE_COMMAND}" -E make_directory
|
||||||
"${CMAKE_BINARY_DIR}/interface/$<CONFIGURATION>/${PLUGIN_PATH}/"
|
${PLUGIN_FULL_PATH}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_command(TARGET ${DIR} POST_BUILD
|
add_custom_command(TARGET ${DIR} POST_BUILD
|
||||||
COMMAND "${CMAKE_COMMAND}" -E copy
|
COMMAND "${CMAKE_COMMAND}" -E copy
|
||||||
"$<TARGET_FILE:${TARGET_NAME}>"
|
"$<TARGET_FILE:${TARGET_NAME}>"
|
||||||
"${CMAKE_BINARY_DIR}/interface/$<CONFIGURATION>/${PLUGIN_PATH}/"
|
${PLUGIN_FULL_PATH}
|
||||||
)
|
)
|
||||||
|
|
||||||
endmacro()
|
endmacro()
|
Loading…
Reference in a new issue