mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 02:34:26 +08:00
默认自动生成export文件
This commit is contained in:
parent
5b26d59bba
commit
b5d073f7f9
@ -85,6 +85,8 @@ if(ENABLE_CXX_API)
|
||||
set(ENABLE_MSVC_MT OFF)
|
||||
message(WARNING "Windows下C++ API SDK只支持md/mdd,ENABLE_MSVC_MT set off")
|
||||
endif()
|
||||
else()
|
||||
add_definitions(-DMediaKit_STATIC)
|
||||
endif ()
|
||||
|
||||
# 安装路径
|
||||
|
@ -59,6 +59,8 @@ set(LINK_LIBRARIES ${MK_LINK_LIBRARIES})
|
||||
list(REMOVE_ITEM LINK_LIBRARIES ZLMediaKit::MediaKit)
|
||||
set(COMPILE_DEFINITIONS ${MK_COMPILE_DEFINITIONS})
|
||||
|
||||
list(APPEND COMPILE_DEFINITIONS GENERATE_EXPORT)
|
||||
|
||||
target_compile_definitions(zlmediakit
|
||||
PUBLIC ${COMPILE_DEFINITIONS})
|
||||
target_compile_options(zlmediakit
|
||||
|
Loading…
Reference in New Issue
Block a user