diff --git a/CMakeLists.txt b/CMakeLists.txt index 2208221a..4b62f4bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,7 @@ else() endif () #添加两个静态库 -set(LINK_LIB_LIST zlmediakit zltoolkit) +set(LINK_LIB_LIST zlmediakit zltoolkit mpeg) #查找openssl是否安装 find_package(OpenSSL QUIET) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6985b30f..6301f927 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -37,7 +37,7 @@ foreach(TEST_SRC ${TEST_SRC_LIST}) STRING(REGEX REPLACE "^\\./|\\.c[a-zA-Z0-9_]*$" "" TEST_EXE_NAME ${TEST_SRC}) message(STATUS "add test:${TEST_EXE_NAME}") add_executable(${TEST_EXE_NAME} ${TEST_SRC}) - target_link_libraries(${TEST_EXE_NAME} mpeg ${LINK_LIB_LIST}) + target_link_libraries(${TEST_EXE_NAME} ${LINK_LIB_LIST}) endforeach()