Skip to content

Commit

Permalink
fix: added FFMPEG library dir to install cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart-Steensma committed Jan 19, 2024
1 parent 491022b commit f0160c7
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
add_executable(snapshot main.cpp ${CMAKE_SOURCE_DIR}/resources/resources.qrc)
target_link_libraries(snapshot PRIVATE snapshotapp)

message(STATUS "Adding directory of FFmpeg libraries to the install search path: ${FFMPEG_LIBRARY_DIRS}")
message(
STATUS
"Adding directory of FFmpeg libraries to the install search path: ${FFMPEG_LIBRARY_DIRS}"
)

install(
TARGETS snapshot
RUNTIME_DEPENDENCIES
DIRECTORIES
${FFMPEG_LIBRARY_DIRS}
POST_EXCLUDE_REGEXES
# Compatability with standard C libraries across linux distributions
# is assumed.
".*libc\.so.*"
".*libm\.so.*"
".*libdbm\.so.*"
".*libpthread\.so.*")
".*libc\\.so.*"
".*libm\\.so.*"
".*libdbm\\.so.*"
".*libpthread\\.so.*")

# Copy the entrypoint to the install directory.
install(PROGRAMS ${CMAKE_SOURCE_DIR}/scripts/snapshot DESTINATION .)
Expand Down

0 comments on commit f0160c7

Please sign in to comment.