aboutsummaryrefslogtreecommitdiffstats
path: root/testing/telegram-desktop/zlib.cmake
blob: 8684c71cabc3bd627616bb37e4923fc05fa3cf36 (plain) (blame)
1
2
3
4
5
6
7
8
9
add_library(external_zlib INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_zlib ALIAS external_zlib)

find_package(PkgConfig REQUIRED)
find_package(ZLIB REQUIRED)
pkg_check_modules(MINIZIP REQUIRED minizip)

target_include_directories(external_zlib SYSTEM INTERFACE ${ZLIB_INCLUDE_DIR} ${MINIZIP_INCLUDE_DIRS})
target_link_libraries (external_zlib INTERFACE ${ZLIB_LIBRARY_RELEASE} ${MINIZIP_LIBRARIES})