Skip to content

Commit

Permalink
add alsa in dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Apr 7, 2024
1 parent 5a938d8 commit eafa8d6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,13 @@ add_library (libv4l2rtspserver STATIC ${LIVESOURCE} ${LIBV4L2RTSP_SRC_FILES})
target_include_directories(libv4l2rtspserver PUBLIC inc ${LIVEINCLUDE})
target_compile_definitions(libv4l2rtspserver PUBLIC ${LIVE555CFLAGS})
target_link_libraries (${PROJECT_NAME} libv4l2rtspserver ${LIVE_LIBRARIES})
if (OpenSSL_FOUND)
target_link_libraries(${PROJECT_NAME} OpenSSL::SSL)
endif ()

#ALSA
if (ALSA)
find_package(ALSA QUIET)
MESSAGE("ALSA_FOUND = ${ALSA_FOUND}")
if (ALSA_LIBRARY)
add_definitions(-DHAVE_ALSA)
target_link_libraries (${PROJECT_NAME} ${ALSA_LIBRARY})

SET(CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS}libasound2,)
endif ()
Expand All @@ -124,7 +120,7 @@ endif()
EXEC_PROGRAM("git submodule update --init")
add_subdirectory(libv4l2cpp EXCLUDE_FROM_ALL)
target_include_directories(libv4l2rtspserver PUBLIC libv4l2cpp/inc)
target_link_libraries (libv4l2rtspserver libv4l2cpp)
target_link_libraries (libv4l2rtspserver PUBLIC libv4l2cpp ${ALSA_LIBRARY} ${OPENSSL_LIBRARIES})

# static link of stdc++ if available
if (STATICSTDCPP)
Expand Down

0 comments on commit eafa8d6

Please sign in to comment.