Skip to content

Commit

Permalink
add library dir for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Aug 6, 2023
1 parent af7931f commit 6b267af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ if (NOT EXISTS ${WEBRTCOBJS}/${CMAKE_STATIC_LIBRARY_PREFIX}webrtc${CMAKE_STATIC_
if (APPLE)
set (WEBRTCARGS rtc_include_internal_audio_device=true\n${WEBRTCARGS})
set (WEBRTCARGS rtc_include_pulse_audio=true\n${WEBRTCARGS})
elseif (NOT WIN32)
elseif (WIN32)
set (WEBRTCARGS rtc_include_internal_audio_device=true\n${WEBRTCARGS})
else()
if (NOT PulseAudio_FOUND)
set (WEBRTCARGS rtc_include_pulse_audio=false\n${WEBRTCARGS})
endif()
Expand Down Expand Up @@ -152,10 +154,11 @@ target_include_directories(civetweb PUBLIC civetweb/include)
# rtmp ?
find_package(PkgConfig QUIET)
pkg_check_modules(RTMP QUIET librtmp)
MESSAGE("RTMP_FOUND = ${RTMP_FOUND} RTMP_INCLUDE_DIRS=${RTMP_INCLUDE_DIRS} RTMP_LIBRARIES=${RTMP_LIBRARIES}")
MESSAGE("RTMP_FOUND = ${RTMP_FOUND} RTMP_INCLUDE_DIRS=${RTMP_INCLUDE_DIRS} RTMP_LIBRARY_DIRS=${RTMP_LIBRARY_DIRS} RTMP_LIBRARIES=${RTMP_LIBRARIES}")
if (RTMP_FOUND)
add_definitions(-DHAVE_RTMP)
target_include_directories (${CMAKE_PROJECT_NAME} PUBLIC ${RTMP_INCLUDE_DIRS})
target_link_directories (${CMAKE_PROJECT_NAME} PUBLIC ${RTMP_LIBRARY_DIRS})
target_link_libraries (${CMAKE_PROJECT_NAME} ${RTMP_LIBRARIES})
endif()

Expand Down

0 comments on commit 6b267af

Please sign in to comment.