FaceAccess/Record/CMakeLists.txt
2024-09-04 17:57:23 +08:00

72 lines
2.1 KiB
CMake

find_package(Boost REQUIRED COMPONENTS json)
add_executable(Record main.cpp
RkAudio.h RkAudio.cpp
OpusCodec.h OpusCodec.cpp
FFmpegResample.h FFmpegResample.cpp
EchoRecord.cpp
Player.cpp
Recorder.cpp
SpeexDsp.h SpeexDsp.cpp
WebRTCPublisher.h WebRTCPublisher.cpp
)
target_include_directories(Record
PRIVATE ${ALSA_INCLUDE_DIR}
PRIVATE ${MPP_INCLUDE_DIR}
PRIVATE ${MPP_INCLUDE_DIR}/rkmedia
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/opus-1.4/include
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/amazon-kinesis-video-streams-webrtc-sdk-c/include
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/speexdsp-1.2.1/include
PRIVATE ${FFMPEG_INCLUDE_DIR}
)
target_link_directories(Record
PRIVATE ${ALSA_LIBRARY_DIRS}
PRIVATE ${MPP_LIBRARY_DIRS}
PRIVATE ${3rdparty_ROOT}/rkap_3a/lib
PRIVATE ${FFMPEG_LIBRARY_DIRS}
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/speexdsp-1.2.1/lib
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/opus-1.4/lib
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/amazon-kinesis-video-streams-webrtc-sdk-c/lib
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/usrsctp-0.9.5.0/lib
PRIVATE /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/libsrtp-2.6.0/lib
)
target_link_libraries(Record
PRIVATE asound
PRIVATE easymedia
PRIVATE drm
PRIVATE rkaiq
PRIVATE rockchip_mpp
PRIVATE v4l2
PRIVATE v4lconvert
PRIVATE jpeg
PRIVATE png16
PRIVATE fontconfig
PRIVATE freetype
PRIVATE expat
PRIVATE rga
PRIVATE glib-2.0
PRIVATE pcre
PRIVATE opus
PRIVATE speexdsp
PRIVATE Boost::json
PRIVATE kvsCommonLws
PRIVATE kvsWebrtcClient
PRIVATE kvsWebrtcSignalingClient
PRIVATE kvspic
PRIVATE kvspicUtils
PRIVATE kvspicClient
PRIVATE usrsctp
PRIVATE srtp2
PRIVATE Universal
PRIVATE HttpProxy
PRIVATE stdc++fs
PRIVATE RKAP_ANR
PRIVATE RKAP_Common
PRIVATE uuid
PRIVATE dl
PRIVATE z
PRIVATE ${FFMPEG_LIBRARY}
)