mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-02-25 01:30:54 +08:00
16 lines
338 B
CMake
16 lines
338 B
CMake
include_directories(include source)
|
|
file(GLOB api_src_list include/*.h source/*.cpp source/*.h source/*.c)
|
|
add_library(api SHARED ${api_src_list})
|
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
add_compile_options(-fPIC)
|
|
endif()
|
|
|
|
if(WIN32)
|
|
add_definitions(-DMediaKitApi_EXPORTS)
|
|
endif()
|
|
|
|
target_link_libraries(api ${LINK_LIB_LIST})
|
|
|
|
|