Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.WithCustomProto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.WithCustomProto
Commits
50376482
Commit
50376482
authored
Apr 30, 2022
by
NzSN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMakeLists.txt bug fix: libshmproto.a not include libav.
parent
f0d849ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
CMakeLists.txt
CMakeLists.txt
+20
-3
No files found.
CMakeLists.txt
View file @
50376482
...
...
@@ -15,6 +15,8 @@ option(enable_movmem "Enable/Disable MovMemProto" ON)
option
(
DEBUG
"Only enable during development"
OFF
)
include_directories
(
${
INCLUDE
}
)
if
(
DEBUG
)
# Google Test
include
(
FetchContent
)
...
...
@@ -70,14 +72,28 @@ install(FILES ${ROOT}/src/proto/proto.h
${
ROOT
}
/src/utils.h
${
ROOT
}
/src/proto/proto.h
${
ROOT
}
/src/proto/movMemProto.h
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
)
DESTINATION include
)
target_link_libraries
(
shmproto
${
CMAKE_SOURCE_DIR
}
/lib/lib/libavformat.a
${
CMAKE_SOURCE_DIR
}
/lib/lib/libavcodec.a
${
CMAKE_SOURCE_DIR
}
/lib/lib/libavdevice.a
${
CMAKE_SOURCE_DIR
}
/lib/lib/libavfilter.a
${
CMAKE_SOURCE_DIR
}
/lib/lib/libavutil.a
${
CMAKE_SOURCE_DIR
}
/lib/lib/libswresample.a
${
CMAKE_SOURCE_DIR
}
/lib/lib/libswscale.a
${
CMAKE_SOURCE_DIR
}
/lib/lib/libpostproc.a
)
target_link_libraries
(
shmproto z
)
target_link_libraries
(
shmproto x264
)
target_link_libraries
(
shmproto lzma
)
if
(
DEBUG
)
# Tests
set
(
Tests
${
ROOT
}
/tests
)
set
(
TestCases
${
Tests
}
/ioctxTestCases.cc
)
${
Tests
}
/ioctxTestCases.cc
)
add_executable
(
unittest
${
TestCases
}
${
SRC_Files
}
)
include_directories
(
${
INCLUDE
}
)
add_custom_command
(
TARGET unittest PRE_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
...
...
@@ -102,3 +118,4 @@ target_link_libraries(unittest
target_link_libraries
(
unittest z
)
target_link_libraries
(
unittest x264
)
target_link_libraries
(
unittest lzma
)
endif
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment