equal
deleted
inserted
replaced
1 # HG changeset patch |
1 # HG changeset patch |
2 # Parent 386f3b8646a61ba6af61609ff67f2da2cc70251e |
2 # Parent 386f3b8646a61ba6af61609ff67f2da2cc70251e |
|
3 # Parent 7b70f47597432fc0b87d5a9b2a444f8c9ed97273 |
3 Add possibility to build with CMake |
4 Add possibility to build with CMake |
4 |
5 |
5 diff --git a/.hgignore b/.hgignore |
6 diff --git a/.hgignore b/.hgignore |
6 --- a/.hgignore |
7 --- a/.hgignore |
7 +++ b/.hgignore |
8 +++ b/.hgignore |
82 + |
83 + |
83 +# Loudmouth |
84 +# Loudmouth |
84 +pkg_check_modules ( LM REQUIRED loudmouth-1.0>=1.4.2 ) |
85 +pkg_check_modules ( LM REQUIRED loudmouth-1.0>=1.4.2 ) |
85 +set ( CMAKE_REQUIRED_INCLUDES ${LM_INCLUDE_DIRS} ) |
86 +set ( CMAKE_REQUIRED_INCLUDES ${LM_INCLUDE_DIRS} ) |
86 +set ( CMAKE_REQUIRED_LIBRARIES ${LM_LIBRARIES} ) |
87 +set ( CMAKE_REQUIRED_LIBRARIES ${LM_LIBRARIES} ) |
87 +set ( CMAKE_REQUIRED_FLAGS ${LM_LDFLAGS} ${LM_CFLAGS} ) |
88 +set ( CMAKE_REQUIRED_FLAGS ${LM_LDFLAGS} ${LM_CFLAGS} ) |
88 +check_symbol_exists ( lm_connection_unregister_reply_handler "loudmouth/loudmouth.h" HAVE_LM_CONNECTION_UNREGISTER_REPLY_HANDLER ) |
89 +check_symbol_exists ( lm_connection_unregister_reply_handler "loudmouth/loudmouth.h" HAVE_LM_CONNECTION_UNREGISTER_REPLY_HANDLER ) |
89 +check_symbol_exists ( lm_ssl_set_cipher_list "loudmouth/loudmouth.h" HAVE_LM_SSL_CIPHER_LIST ) |
90 +check_symbol_exists ( lm_ssl_set_cipher_list "loudmouth/loudmouth.h" HAVE_LM_SSL_CIPHER_LIST ) |
90 +check_symbol_exists ( lm_ssl_set_ca "loudmouth/loudmouth.h" HAVE_LM_SSL_CA ) |
91 +check_symbol_exists ( lm_ssl_set_ca "loudmouth/loudmouth.h" HAVE_LM_SSL_CA ) |
91 + |
92 + |
92 +# Libidn |
93 +# Libidn |
110 + else () |
111 + else () |
111 + find_package ( Curses ) |
112 + find_package ( Curses ) |
112 + # XXX just fail? |
113 + # XXX just fail? |
113 + endif () |
114 + endif () |
114 +endif () |
115 +endif () |
115 +set ( CMAKE_REQUIRED_INCLUDES ${CURSES_INCLUDE_DIRS} ) |
116 +set ( CMAKE_REQUIRED_INCLUDES ${CURSES_INCLUDE_DIRS} ) |
116 +set ( CMAKE_REQUIRED_LIBRARIES ${CURSES_LIBRARIES} ) |
117 +set ( CMAKE_REQUIRED_LIBRARIES ${CURSES_LIBRARIES} ) |
117 +set ( CMAKE_REQUIRED_FLAGS ${CURSES_LDFLAGS} ${CURSES_CFLAGS} ) |
118 +set ( CMAKE_REQUIRED_FLAGS "${CURSES_LDFLAGS} ${CURSES_CFLAGS}" ) |
118 +check_symbol_exists ( ESCDELAY "curses.h" HAVE_ESCDELAY ) |
119 +check_symbol_exists ( ESCDELAY "curses.h" HAVE_ESCDELAY ) |
119 + |
120 + |
120 +# Gpgme |
121 +# Gpgme |
121 +if ( WANT_GPGME ) |
122 +if ( WANT_GPGME ) |
122 + find_program ( GPGME_CONFIG_EXECUTABLE gpgme-config DOC "Path to gpgme-config executable" ) |
123 + find_program ( GPGME_CONFIG_EXECUTABLE gpgme-config DOC "Path to gpgme-config executable" ) |