Commit 71043425 authored by Ghislain MARY's avatar Ghislain MARY

Fix link of mediastreamer2_tester on Mac OS X.

parent bd9a212e
...@@ -386,7 +386,7 @@ if(APPLE) ...@@ -386,7 +386,7 @@ if(APPLE)
list(APPEND APPLE_SPECIFIC_LINK_FLAGS "-framework Cocoa" "-framework OpenGL" "-framework QuartzCore" "-framework QTKit") list(APPEND APPLE_SPECIFIC_LINK_FLAGS "-framework Cocoa" "-framework OpenGL" "-framework QuartzCore" "-framework QTKit")
endif() endif()
if(ENABLE_MACSND) if(ENABLE_MACSND)
list(APPEND APPLE_SPECIFIC_LINK_FLAGS "-framework Carbon" "-framework AudioUnit" "-framework CoreAudio -framework CoreServices") list(APPEND APPLE_SPECIFIC_LINK_FLAGS "-framework Carbon" "-framework AudioUnit" "-framework CoreAudio" "-framework CoreServices")
endif() endif()
set(PLUGINS_EXT ".dylib") set(PLUGINS_EXT ".dylib")
add_definitions(-DTARGET_OS_MAC=1) add_definitions(-DTARGET_OS_MAC=1)
......
...@@ -42,3 +42,7 @@ endif() ...@@ -42,3 +42,7 @@ endif()
add_executable(mediastreamer2_tester ${SOURCE_FILES}) add_executable(mediastreamer2_tester ${SOURCE_FILES})
target_include_directories(mediastreamer2_tester PUBLIC ${CUNIT_INCLUDE_DIRS}) target_include_directories(mediastreamer2_tester PUBLIC ${CUNIT_INCLUDE_DIRS})
target_link_libraries(mediastreamer2_tester mediastreamer_voip mediastreamer_base ${CUNIT_LIBRARIES}) target_link_libraries(mediastreamer2_tester mediastreamer_voip mediastreamer_base ${CUNIT_LIBRARIES})
string(REPLACE ";" " " APPLE_SPECIFIC_LINK_FLAGS_STR "${APPLE_SPECIFIC_LINK_FLAGS}")
if(NOT "${APPLE_SPECIFIC_LINK_FLAGS_STR}" STREQUAL "")
set_target_properties(mediastreamer2_tester PROPERTIES LINK_FLAGS ${APPLE_SPECIFIC_LINK_FLAGS_STR})
endif()
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