build pip package for mac
This commit is contained in:
@@ -42,6 +42,13 @@ if(WIN32)
|
|||||||
"${NDI_DIR}/Bin/x64/Processing.NDI.Lib.Licenses.txt"
|
"${NDI_DIR}/Bin/x64/Processing.NDI.Lib.Licenses.txt"
|
||||||
DESTINATION ${CMAKE_INSTALL_PREFIX}
|
DESTINATION ${CMAKE_INSTALL_PREFIX}
|
||||||
)
|
)
|
||||||
|
elseif(APPLE)
|
||||||
|
install(
|
||||||
|
FILES
|
||||||
|
"${NDI_LIBRARY_DIR}/libndi.dylib"
|
||||||
|
"${NDI_LICENSE_DIR}/libndi_licenses.txt"
|
||||||
|
DESTINATION ${CMAKE_INSTALL_PREFIX}
|
||||||
|
)
|
||||||
elseif(UNIX)
|
elseif(UNIX)
|
||||||
file(GLOB DLL "${NDI_LIBRARY_DIR}/libndi.so*")
|
file(GLOB DLL "${NDI_LIBRARY_DIR}/libndi.so*")
|
||||||
file(GLOB LICENSE "${NDI_LICENSE_DIR}/*.txt")
|
file(GLOB LICENSE "${NDI_LICENSE_DIR}/*.txt")
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ elseif(APPLE)
|
|||||||
set(NDI_DIR "/Library/NDI SDK for Apple")
|
set(NDI_DIR "/Library/NDI SDK for Apple")
|
||||||
set(NDI_INCLUDE_DIR "${NDI_DIR}/include")
|
set(NDI_INCLUDE_DIR "${NDI_DIR}/include")
|
||||||
set(NDI_LIBRARY_DIR "${NDI_DIR}/lib/macOS")
|
set(NDI_LIBRARY_DIR "${NDI_DIR}/lib/macOS")
|
||||||
|
set(NDI_LICENSE_DIR "${NDI_DIR}/licenses")
|
||||||
file(GLOB NDI_LIBS "${NDI_LIBRARY_DIR}/*.dylib")
|
file(GLOB NDI_LIBS "${NDI_LIBRARY_DIR}/*.dylib")
|
||||||
else()
|
else()
|
||||||
set(NDI_FOUND FALSE)
|
set(NDI_FOUND FALSE)
|
||||||
|
|||||||
Reference in New Issue
Block a user