Added support for optional libz.

This commit is contained in:
Jon Siwek 2010-10-21 15:32:31 -05:00
parent 88c77fdc25
commit d043aba54d
4 changed files with 9 additions and 5 deletions

View file

@ -69,5 +69,4 @@ set(BinPAC_SKIP_INSTALL true)
# TODO: more dependencies:
# LibGeoIP
# Libz
# Google perftools

View file

@ -99,8 +99,12 @@ if (LIBMAGIC_FOUND)
set(HAVE_LIBMAGIC true)
endif ()
find_package(ZLIB)
if (ZLIB_FOUND)
set(HAVE_LIBZ true)
endif ()
# TODO: optional libGeoIP
# TODO: optional libz
# TODO: optional Google perftools
##
@ -155,7 +159,7 @@ message(
"\nBroccoli: ${use_broccoli}"
"\nBroctl: ${use_broctl}"
"\nGeoIP: ${use_geoip}"
"\nlibz: ${use_libz}"
"\nlibz: ${HAVE_LIBZ}"
"\nlibmagic: ${HAVE_LIBMAGIC}"
"\nGoogle perftools: ${use_perftools}"
"\n"

View file

@ -23,8 +23,8 @@
/* Define if you have the `magic' library (-lmagic). */
#cmakedefine HAVE_LIBMAGIC
/* Define to 1 if you have the `z' library (-lz). */
#undef HAVE_LIBZ
/* Define if you have the `z' library (-lz). */
#cmakedefine HAVE_LIBZ
/* We are on a Linux system */
#cmakedefine HAVE_LINUX

View file

@ -369,6 +369,7 @@ target_link_libraries(bro
${OPENSSL_LIBRARIES}
${BIND_LIBRARY}
${LibMagic_LIBRARY}
${ZLIB_LIBRARIES}
)
install(TARGETS bro DESTINATION bin)