remove zlib from third_party, find it by cmake find_package()

This commit is contained in:
Chunting Gu
2020-09-01 14:41:01 +08:00
parent d49db1ec9c
commit 3d7b66f911
122 changed files with 50 additions and 43226 deletions
+1 -20
View File
@@ -1,26 +1,7 @@
# Examples
# Common libraries to link for examples.
set(EXAMPLE_LIBS
webcc
${Boost_LIBRARIES}
"${CMAKE_THREAD_LIBS_INIT}")
if(WEBCC_ENABLE_SSL)
set(EXAMPLE_LIBS ${EXAMPLE_LIBS} ${OPENSSL_LIBRARIES})
if(WIN32)
set(EXAMPLE_LIBS ${EXAMPLE_LIBS} crypt32)
endif()
endif()
if(WEBCC_ENABLE_GZIP)
if(WIN32)
set(EXAMPLE_LIBS ${EXAMPLE_LIBS} zlibstatic)
else()
set(EXAMPLE_LIBS ${EXAMPLE_LIBS} ${ZLIB_LIBRARIES})
endif()
endif()
set(EXAMPLE_LIBS webcc)
if(UNIX)
# Add `-ldl` for Linux to avoid "undefined reference to `dlopen'".