Commit bd72aa90 authored by Ghislain MARY's avatar Ghislain MARY

Fix build of mediastream tool on Linux with CMake.

parent f55705ca
......@@ -37,7 +37,11 @@ if (PCAP_FOUND)
target_link_libraries(pcap_playback ${PCAP_LIBRARIES})
endif()
add_executable(mediastream mediastream.c common.c mediastream_cocoa.m)
set(MEDIASTREAM_SOURCE_FILES mediastream.c common.c)
if(APPLE)
list(APPEND MEDIASTREAM_SOURCE_FILES mediastream_cocoa.m)
endif()
add_executable(mediastream ${MEDIASTREAM_SOURCE_FILES})
target_link_libraries(mediastream mediastreamer_voip mediastreamer_base)
string(REPLACE ";" " " APPLE_SPECIFIC_LINK_FLAGS_STR "${APPLE_SPECIFIC_LINK_FLAGS}")
if(NOT "${APPLE_SPECIFIC_LINK_FLAGS_STR}" STREQUAL "")
......
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