blob: 5aaca606643229d4034741a0cb694b8d72c959df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# -*- cmake -*-
include(Prebuilt)
if( TARGET zlib-ng::zlib-ng )
return()
endif()
create_target(zlib-ng::zlib-ng)
if (USESYSTEMLIBS)
include(FindZLIBNG)
else (USESYSTEMLIBS)
use_prebuilt_binary(zlib-ng)
if (WINDOWS)
set_target_libraries( zlib-ng::zlib-ng zlib )
else()
set_target_libraries( zlib-ng::zlib-ng z )
endif (WINDOWS)
set_target_include_dirs( zlib-ng::zlib-ng ${LIBS_PREBUILT_DIR}/include/zlib-ng)
endif (USESYSTEMLIBS)
|