mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-14 07:45: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,11 +21,25 @@ IF(NOT TARGET libobs)
|
||||||
SET(LIBOBS_EXISTS FALSE)
|
SET(LIBOBS_EXISTS FALSE)
|
||||||
SET(LIBOBS_CUSTOM FALSE CACHE BOOL "Use custom libOBS")
|
SET(LIBOBS_CUSTOM FALSE CACHE BOOL "Use custom libOBS")
|
||||||
IF(NOT LIBOBS_CUSTOM)
|
IF(NOT LIBOBS_CUSTOM)
|
||||||
|
IF(WIN32)
|
||||||
IF (${BITS} STREQUAL "64")
|
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")
|
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()
|
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")
|
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()
|
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)
|
# OBS Studio (CPack Release)
|
||||||
download_project(
|
download_project(
|
||||||
|
@ -210,7 +224,9 @@ else()
|
||||||
RUNTIME DESTINATION "obs-plugins/${BITS}bit" COMPONENT Runtime
|
RUNTIME DESTINATION "obs-plugins/${BITS}bit" COMPONENT Runtime
|
||||||
LIBRARY DESTINATION "obs-plugins/${BITS}bit" COMPONENT Runtime
|
LIBRARY DESTINATION "obs-plugins/${BITS}bit" COMPONENT Runtime
|
||||||
)
|
)
|
||||||
|
IF(MSVC)
|
||||||
INSTALL(FILES $<TARGET_PDB_FILE:obs-stream-effects> DESTINATION "obs-plugins/${BITS}bit" OPTIONAL)
|
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)
|
INSTALL(DIRECTORY "${PROJECT_SOURCE_DIR}/data/" DESTINATION "data/obs-plugins/obs-stream-effects" OPTIONAL)
|
||||||
|
|
||||||
# CPack
|
# CPack
|
||||||
|
|
Loading…
Reference in a new issue