"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "util/CMakeLists.txt" between
gvm-libs-11.0.0.tar.gz and gvm-libs-11.0.1.tar.gz

About: GVM Libraries for the Greenbone Vulnerability Management (GVM-10) framework (derived from the former openvas-libraries).

CMakeLists.txt  (gvm-libs-11.0.0):CMakeLists.txt  (gvm-libs-11.0.1)
skipping to change at line 50 skipping to change at line 50
# for uuidutils we need uuidlib # for uuidutils we need uuidlib
pkg_check_modules (UUID REQUIRED uuid>=2.25.0) pkg_check_modules (UUID REQUIRED uuid>=2.25.0)
# for sshutils we need libssh # for sshutils we need libssh
pkg_check_modules (LIBSSH REQUIRED libssh>=0.6.0) pkg_check_modules (LIBSSH REQUIRED libssh>=0.6.0)
# for kb we need libhiredis # for kb we need libhiredis
pkg_check_modules (REDIS REQUIRED hiredis>=0.10.1) pkg_check_modules (REDIS REQUIRED hiredis>=0.10.1)
# for fast XML we need libxml2
pkg_check_modules (LIBXML2 REQUIRED libxml-2.0>=2.0)
# Set NVTICACHE name with the version # Set NVTICACHE name with the version
set (NVTICACHE_STR "nvticache${PROJECT_VERSION}") set (NVTICACHE_STR "nvticache${PROJECT_VERSION}")
add_definitions (-DNVTICACHE_STR="${NVTICACHE_STR}") add_definitions (-DNVTICACHE_STR="${NVTICACHE_STR}")
#for gpgmeutils we need libgpgme #for gpgmeutils we need libgpgme
set (GPGME_MIN_VERSION "1.1.2") set (GPGME_MIN_VERSION "1.1.2")
message (STATUS "Looking for gpgme...") message (STATUS "Looking for gpgme...")
find_library (GPGME gpgme) find_library (GPGME gpgme)
if (NOT GPGME) if (NOT GPGME)
message (SEND_ERROR "The gpgme library is required.") message (SEND_ERROR "The gpgme library is required.")
skipping to change at line 134 skipping to change at line 137
endif (NOT LIBLDAP) endif (NOT LIBLDAP)
if (NOT LIBLDAP) if (NOT LIBLDAP)
message (STATUS " No ldap library found - ldap support disabled") message (STATUS " No ldap library found - ldap support disabled")
else (NOT LIBLDAP) else (NOT LIBLDAP)
message (STATUS " Found ${LIBLDAP} - ldap support enabled") message (STATUS " Found ${LIBLDAP} - ldap support enabled")
add_definitions (-DENABLE_LDAP_AUTH=1) add_definitions (-DENABLE_LDAP_AUTH=1)
set (LDAP_LDFLAGS "-lldap") set (LDAP_LDFLAGS "-lldap")
endif (NOT LIBLDAP) endif (NOT LIBLDAP)
endif (BUILD_WITH_LDAP) endif (BUILD_WITH_LDAP)
include_directories (${GLIB_INCLUDE_DIRS} ${GPGME_INCLUDE_DIRS} ${GCRYPT_INCLUDE include_directories (${GLIB_INCLUDE_DIRS} ${GPGME_INCLUDE_DIRS} ${GCRYPT_INCLUDE
_DIRS}) _DIRS}
${LIBXML2_INCLUDE_DIRS})
set (FILES authutils.c compressutils.c fileutils.c gpgmeutils.c kb.c ldaputils.c set (FILES authutils.c compressutils.c fileutils.c gpgmeutils.c kb.c ldaputils.c
nvticache.c radiusutils.c serverutils.c sshutils.c uuidutils.c nvticache.c radiusutils.c serverutils.c sshutils.c uuidutils.c
xmlutils.c) xmlutils.c)
set (HEADERS authutils.h compressutils.h fileutils.h gpgmeutils.h kb.h set (HEADERS authutils.h compressutils.h fileutils.h gpgmeutils.h kb.h
ldaputils.h nvticache.h radiusutils.h serverutils.h sshutils.h ldaputils.h nvticache.h radiusutils.h serverutils.h sshutils.h
uuidutils.h xmlutils.h) uuidutils.h xmlutils.h)
if (BUILD_STATIC) if (BUILD_STATIC)
skipping to change at line 161 skipping to change at line 165
if (BUILD_SHARED) if (BUILD_SHARED)
add_library (gvm_util_shared SHARED ${FILES}) add_library (gvm_util_shared SHARED ${FILES})
set_target_properties (gvm_util_shared PROPERTIES OUTPUT_NAME "gvm_util") set_target_properties (gvm_util_shared PROPERTIES OUTPUT_NAME "gvm_util")
set_target_properties (gvm_util_shared PROPERTIES CLEAN_DIRECT_OUTPUT 1) set_target_properties (gvm_util_shared PROPERTIES CLEAN_DIRECT_OUTPUT 1)
set_target_properties (gvm_util_shared PROPERTIES SOVERSION "${PROJECT_VERSION _MAJOR}") set_target_properties (gvm_util_shared PROPERTIES SOVERSION "${PROJECT_VERSION _MAJOR}")
set_target_properties (gvm_util_shared PROPERTIES VERSION "${CPACK_PACKAGE_VER SION}") set_target_properties (gvm_util_shared PROPERTIES VERSION "${CPACK_PACKAGE_VER SION}")
set_target_properties (gvm_util_shared PROPERTIES PUBLIC_HEADER "${HEADERS}") set_target_properties (gvm_util_shared PROPERTIES PUBLIC_HEADER "${HEADERS}")
target_link_libraries (gvm_util_shared LINK_PRIVATE ${GLIB_LDFLAGS} target_link_libraries (gvm_util_shared LINK_PRIVATE ${GLIB_LDFLAGS}
${GIO_LDFLAGS} ${GPGME_LDFLAGS} ${ZLIB_LDFLAGS} ${GIO_LDFLAGS} ${GPGME_LDFLAGS} ${ZLIB_LDFLAGS}
${RADIUS_LDFLAGS} ${LIBSSH_LDFLAGS} ${RADIUS_LDFLAGS} ${LIBSSH_LDFLAGS} ${GNUTLS_LDFLAGS}
${GCRYPT_LDFLAGS} ${LDAP_LDFLAGS} ${REDIS_LDFLAGS} ${GCRYPT_LDFLAGS} ${LDAP_LDFLAGS} ${REDIS_LDFLAGS}
${UUID_LDFLAGS} ${LINKER_HARDENING_FLAGS}) ${LIBXML2_LDFLAGS} ${UUID_LDFLAGS}
${LINKER_HARDENING_FLAGS})
endif (BUILD_SHARED) endif (BUILD_SHARED)
## Tests
if (BUILD_TESTS)
add_executable (xmlutils-test
EXCLUDE_FROM_ALL
xmlutils_tests.c)
add_test (xmlutils-test xmlutils-test)
target_include_directories (xmlutils-test PRIVATE ${CGREEN_INCLUDE_DIRS})
target_link_libraries (xmlutils-test ${CGREEN_LIBRARIES}
${GLIB_LDFLAGS} ${GIO_LDFLAGS} ${GPGME_LDFLAGS} ${ZLIB_L
DFLAGS}
${RADIUS_LDFLAGS} ${LIBSSH_LDFLAGS} ${GNUTLS_LDFLAGS}
${GCRYPT_LDFLAGS} ${LDAP_LDFLAGS} ${REDIS_LDFLAGS}
${LIBXML2_LDFLAGS} ${UUID_LDFLAGS}
${LINKER_HARDENING_FLAGS})
add_custom_target (tests-xmlutils
DEPENDS xmlutils-test)
endif (BUILD_TESTS)
## Install ## Install
configure_file (libgvm_util.pc.in ${CMAKE_BINARY_DIR}/libgvm_util.pc @ONLY) configure_file (libgvm_util.pc.in ${CMAKE_BINARY_DIR}/libgvm_util.pc @ONLY)
install (FILES ${CMAKE_BINARY_DIR}/libgvm_util.pc install (FILES ${CMAKE_BINARY_DIR}/libgvm_util.pc
DESTINATION ${LIBDIR}/pkgconfig) DESTINATION ${LIBDIR}/pkgconfig)
if (BUILD_STATIC) if (BUILD_STATIC)
install (TARGETS gvm_util_static install (TARGETS gvm_util_static
RUNTIME DESTINATION ${BINDIR} RUNTIME DESTINATION ${BINDIR}
ARCHIVE DESTINATION ${LIBDIR} ARCHIVE DESTINATION ${LIBDIR}
 End of changes. 5 change blocks. 
4 lines changed or deleted 33 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)