mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-21 01:13:37 +08:00
优化cmake
This commit is contained in:
parent
93201f40d3
commit
0c5b3f87e5
@ -8,6 +8,9 @@ if (IOS)
|
||||
return()
|
||||
endif ()
|
||||
|
||||
add_definitions(-DGENERATE_EXPORT)
|
||||
include_directories(${CMAKE_BINARY_DIR})
|
||||
|
||||
if (ENABLE_API_STATIC_LIB)
|
||||
add_definitions(-DMediaKitApi_STATIC)
|
||||
add_library(mk_api STATIC ${api_src_list})
|
||||
@ -21,8 +24,6 @@ else ()
|
||||
target_link_libraries(mk_api jsoncpp ${LINK_LIB_LIST})
|
||||
endif ()
|
||||
|
||||
add_definitions(-DGENERATE_EXPORT)
|
||||
include_directories(${CMAKE_BINARY_DIR})
|
||||
generate_export_header(mk_api
|
||||
EXPORT_MACRO_NAME API_EXPORT
|
||||
BASE_NAME MK_API
|
||||
|
Loading…
Reference in New Issue
Block a user