diff -r 78238d26911a -r 0a87df8ad9c1 add-cmake.diff --- a/add-cmake.diff Wed Nov 12 23:04:36 2014 +0200 +++ b/add-cmake.diff Sat Nov 07 17:39:49 2015 +0200 @@ -1,5 +1,6 @@ # HG changeset patch # Parent 386f3b8646a61ba6af61609ff67f2da2cc70251e +# Parent 7b70f47597432fc0b87d5a9b2a444f8c9ed97273 Add possibility to build with CMake diff --git a/.hgignore b/.hgignore @@ -84,7 +85,7 @@ +pkg_check_modules ( LM REQUIRED loudmouth-1.0>=1.4.2 ) +set ( CMAKE_REQUIRED_INCLUDES ${LM_INCLUDE_DIRS} ) +set ( CMAKE_REQUIRED_LIBRARIES ${LM_LIBRARIES} ) -+set ( CMAKE_REQUIRED_FLAGS ${LM_LDFLAGS} ${LM_CFLAGS} ) ++set ( CMAKE_REQUIRED_FLAGS ${LM_LDFLAGS} ${LM_CFLAGS} ) +check_symbol_exists ( lm_connection_unregister_reply_handler "loudmouth/loudmouth.h" HAVE_LM_CONNECTION_UNREGISTER_REPLY_HANDLER ) +check_symbol_exists ( lm_ssl_set_cipher_list "loudmouth/loudmouth.h" HAVE_LM_SSL_CIPHER_LIST ) +check_symbol_exists ( lm_ssl_set_ca "loudmouth/loudmouth.h" HAVE_LM_SSL_CA ) @@ -112,9 +113,9 @@ + # XXX just fail? + endif () +endif () -+set ( CMAKE_REQUIRED_INCLUDES ${CURSES_INCLUDE_DIRS} ) -+set ( CMAKE_REQUIRED_LIBRARIES ${CURSES_LIBRARIES} ) -+set ( CMAKE_REQUIRED_FLAGS ${CURSES_LDFLAGS} ${CURSES_CFLAGS} ) ++set ( CMAKE_REQUIRED_INCLUDES ${CURSES_INCLUDE_DIRS} ) ++set ( CMAKE_REQUIRED_LIBRARIES ${CURSES_LIBRARIES} ) ++set ( CMAKE_REQUIRED_FLAGS "${CURSES_LDFLAGS} ${CURSES_CFLAGS}" ) +check_symbol_exists ( ESCDELAY "curses.h" HAVE_ESCDELAY ) + +# Gpgme