Skip to content

Commit

Permalink
add logger in public properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Sep 21, 2024
1 parent a48f90d commit d912aab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

project(v4l2rtspserver)

Expand Down Expand Up @@ -48,18 +48,6 @@ find_package (Threads)
target_link_libraries (${PROJECT_NAME} Threads::Threads)


# LOG4CPP
if (LOG4CPP)
find_library(LOG4CPP_LIBRARY NAMES log4cpp)
if (LOG4CPP_LIBRARY)
message(STATUS "Log4Cpp available ${LOG4CPP_LIBRARY}")
add_definitions(-DHAVE_LOG4CPP)
target_link_libraries(${PROJECT_NAME} "${LOG4CPP_LIBRARY}")

SET(CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS}liblog4cpp5v5,)
endif ()
endif ()

# openssl ?
if (WITH_SSL)
find_package(OpenSSL QUIET)
Expand Down Expand Up @@ -103,6 +91,18 @@ if (OpenSSL_FOUND)
set(LIBRARIES ${LIBRARIES} ${OPENSSL_LIBRARIES})
endif ()

# LOG4CPP
if (LOG4CPP)
find_library(LOG4CPP_LIBRARY NAMES log4cpp)
if (LOG4CPP_LIBRARY)
message(STATUS "Log4Cpp available ${LOG4CPP_LIBRARY}")
target_compile_definitions(libv4l2rtspserver PUBLIC HAVE_LOG4CPP)
target_link_libraries(libv4l2rtspserver PUBLIC "${LOG4CPP_LIBRARY}")

SET(CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS}liblog4cpp5v5,)
endif ()
endif ()

#ALSA
if (ALSA)
find_package(ALSA QUIET)
Expand Down
2 changes: 1 addition & 1 deletion libv4l2cpp

0 comments on commit d912aab

Please sign in to comment.