mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
cmake: Fix PACKAGE and INSTALL targets
INSTALL would incorrectly copy /data instead of the content of /data, resulting in the plugin not being able to load effects and default images. PACKAGE was running from the wrong directory, resulting in an extra ".." directory being added, which was invisible for some decompression software.
This commit is contained in:
parent
a0eb5444cd
commit
13fd771ab9
1 changed files with 7 additions and 9 deletions
|
@ -157,20 +157,18 @@ if(TARGET libobs)
|
|||
else()
|
||||
INSTALL(TARGETS obs-stream-effects DESTINATION "${INSTALL_DIR}/obs-plugins/${BITS}bit")
|
||||
INSTALL(FILES $<TARGET_PDB_FILE:obs-stream-effects> DESTINATION "${INSTALL_DIR}/obs-plugins/${BITS}bit" OPTIONAL)
|
||||
INSTALL(DIRECTORY "${PROJECT_SOURCE_DIR}/data" DESTINATION "${INSTALL_DIR}/data/obs-plugins/obs-stream-effects" OPTIONAL)
|
||||
INSTALL(DIRECTORY "${PROJECT_SOURCE_DIR}/data/" DESTINATION "${INSTALL_DIR}/data/obs-plugins/obs-stream-effects" OPTIONAL)
|
||||
|
||||
# Zip Generator
|
||||
ADD_CUSTOM_TARGET(PACKAGE_ZIP COMMAND
|
||||
${CMAKE_COMMAND} -E tar "cfv"
|
||||
"${INSTALL_DIR}/obs-stream-effects.${VERSION_STR}.zip"
|
||||
--format=zip
|
||||
"${INSTALL_DIR}/data" "${INSTALL_DIR}/obs-plugins")
|
||||
${CMAKE_COMMAND} -E tar "cfv" "${INSTALL_DIR}/obs-stream-effects.${VERSION_STR}.zip" --format=zip -- "${INSTALL_DIR}/data/" "${INSTALL_DIR}/obs-plugins"
|
||||
DEPENDS INSTALL obs-stream-effects
|
||||
WORKING_DIRECTORY "${INSTALL_DIR}")
|
||||
|
||||
# 7-Zip Generator
|
||||
ADD_CUSTOM_TARGET(PACKAGE_7ZIP COMMAND
|
||||
${CMAKE_COMMAND} -E tar "cfv"
|
||||
"${INSTALL_DIR}/obs-stream-effects.${VERSION_STR}.7z"
|
||||
--format=7zip
|
||||
"${INSTALL_DIR}/data" "${INSTALL_DIR}/obs-plugins")
|
||||
${CMAKE_COMMAND} -E tar "cfv" "${INSTALL_DIR}/obs-stream-effects.${VERSION_STR}.7z" --format=7zip -- "${INSTALL_DIR}/data/" "${INSTALL_DIR}/obs-plugins"
|
||||
DEPENDS INSTALL obs-stream-effects
|
||||
WORKING_DIRECTORY "${INSTALL_DIR}")
|
||||
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue