mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
cmake: Improve support for Linux and MacOS
Standalone builds should not assume that everything is Windows and in the future hopefully work out of the box for Linux and MacOS. This is required if CI should also work for Linux and MacOS. Related: #13
This commit is contained in:
parent
e621b69aa2
commit
9f06d5ad49
1 changed files with 21 additions and 5 deletions
|
@ -21,10 +21,24 @@ IF(NOT TARGET libobs)
|
|||
SET(LIBOBS_EXISTS FALSE)
|
||||
SET(LIBOBS_CUSTOM FALSE CACHE BOOL "Use custom libOBS")
|
||||
IF(NOT LIBOBS_CUSTOM)
|
||||
IF (${BITS} STREQUAL "64")
|
||||
SET(LIBOBS_URL "https://ci.appveyor.com/api/buildjobs/jp18y3sc5icoq8qs/artifacts/build%2Fobs-studio-x64-vs2017-x64.7z" CACHE STRING "URL to libobs Cpack")
|
||||
ELSE()
|
||||
SET(LIBOBS_URL "https://ci.appveyor.com/api/buildjobs/nj276esfv3ho0j49/artifacts/build%2Fobs-studio-x86-vs2017-x86.7z" CACHE STRING "URL to libobs Cpack")
|
||||
IF(WIN32)
|
||||
IF (${BITS} STREQUAL "64")
|
||||
SET(LIBOBS_URL "https://ci.appveyor.com/api/buildjobs/jp18y3sc5icoq8qs/artifacts/build%2Fobs-studio-x64-vs2017-x64.7z" CACHE STRING "URL to libobs Cpack")
|
||||
ELSE()
|
||||
SET(LIBOBS_URL "https://ci.appveyor.com/api/buildjobs/nj276esfv3ho0j49/artifacts/build%2Fobs-studio-x86-vs2017-x86.7z" CACHE STRING "URL to libobs Cpack")
|
||||
ENDIF()
|
||||
ELSEIF(UNIX AND NOT APPLE)
|
||||
IF (${BITS} STREQUAL "64")
|
||||
SET(LIBOBS_URL "" CACHE STRING "URL to libobs Cpack")
|
||||
ELSE()
|
||||
SET(LIBOBS_URL "" CACHE STRING "URL to libobs Cpack")
|
||||
ENDIF()
|
||||
ELSEIF(APPLE)
|
||||
IF (${BITS} STREQUAL "64")
|
||||
SET(LIBOBS_URL "" CACHE STRING "URL to libobs Cpack")
|
||||
ELSE()
|
||||
SET(LIBOBS_URL "" CACHE STRING "URL to libobs Cpack")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
# OBS Studio (CPack Release)
|
||||
|
@ -210,7 +224,9 @@ else()
|
|||
RUNTIME DESTINATION "obs-plugins/${BITS}bit" COMPONENT Runtime
|
||||
LIBRARY DESTINATION "obs-plugins/${BITS}bit" COMPONENT Runtime
|
||||
)
|
||||
INSTALL(FILES $<TARGET_PDB_FILE:obs-stream-effects> DESTINATION "obs-plugins/${BITS}bit" OPTIONAL)
|
||||
IF(MSVC)
|
||||
INSTALL(FILES $<TARGET_PDB_FILE:obs-stream-effects> DESTINATION "obs-plugins/${BITS}bit" OPTIONAL)
|
||||
ENDIF()
|
||||
INSTALL(DIRECTORY "${PROJECT_SOURCE_DIR}/data/" DESTINATION "data/obs-plugins/obs-stream-effects" OPTIONAL)
|
||||
|
||||
# CPack
|
||||
|
|
Loading…
Reference in a new issue