Commit 014c952a authored by DanmeiChen's avatar DanmeiChen

make framework on macos

parent fd330d26
......@@ -47,14 +47,19 @@ if(ENABLE_STATIC)
)
endif()
if(ENABLE_SHARED)
if(NOT IOS)
if(NOT APPLE)
add_library(msopenh264 MODULE ${SOURCE_FILES})
else()
add_library(msopenh264 SHARED ${SOURCE_FILES})
endif()
target_link_libraries(msopenh264 ${LIBS})
if(IOS)
set(MIN_OS ${LINPHONE_IOS_DEPLOYMENT_TARGET})
if(APPLE)
if(IOS)
set(MIN_OS ${LINPHONE_IOS_DEPLOYMENT_TARGET})
else()
set(MIN_OS ${CMAKE_OSX_DEPLOYMENT_TARGET})
endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/build/osx/")
set_target_properties(msopenh264 PROPERTIES
FRAMEWORK TRUE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment