equal
deleted
inserted
replaced
28 include(CheckSymbolExists) |
28 include(CheckSymbolExists) |
29 set(CMAKE_REQUIRED_INCLUDES ${LM_INCLUDE_DIRS}) |
29 set(CMAKE_REQUIRED_INCLUDES ${LM_INCLUDE_DIRS}) |
30 set(CMAKE_REQUIRED_LIBRARIES ${LM_LIBRARIES}) |
30 set(CMAKE_REQUIRED_LIBRARIES ${LM_LIBRARIES}) |
31 set(CMAKE_REQUIRED_FLAGS ${LM_LDFLAGS} ${LM_CFLAGS}) |
31 set(CMAKE_REQUIRED_FLAGS ${LM_LDFLAGS} ${LM_CFLAGS}) |
32 check_symbol_exists(lm_connection_unregister_reply_handler loudmouth/loudmouth.h HAVE_LM_CONNECTION_UNREGISTER_REPLY_HANDLER) |
32 check_symbol_exists(lm_connection_unregister_reply_handler loudmouth/loudmouth.h HAVE_LM_CONNECTION_UNREGISTER_REPLY_HANDLER) |
|
33 include(CheckCSourceCompiles) |
|
34 set(CMAKE_REQUIRED_INCLUDES ${MCABBER_INCLUDE_DIRS}) |
|
35 set(CMAKE_REQUIRED_LIBRARIES ${MCABBER_LIBRARIES}) |
|
36 set(CMAKE_REQUIRED_FLAGS ${MCABBER_LDFLAGS} ${MCABBER_CFLAGS}) |
|
37 check_c_source_compiles(" |
|
38 #include <glib.h> |
|
39 #include <mcabber/api.h> |
|
40 #ifdef MCABBER_API_HAVE_COMPL_FLAGS |
|
41 int main (void) { return 0; } |
|
42 #endif |
|
43 " HAVE_MCABBER_COMPLETION_FLAGS) |
33 link_directories(${GLIB_LIBRARY_DIRS} |
44 link_directories(${GLIB_LIBRARY_DIRS} |
34 ${LM_LIBRARY_DIRS} |
45 ${LM_LIBRARY_DIRS} |
35 ${MCABBER_LIBRARY_DIRS}) |
46 ${MCABBER_LIBRARY_DIRS}) |
36 |
47 |
37 ## Target definitions |
48 ## Target definitions |
67 endif() |
78 endif() |
68 set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}") |
79 set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}") |
69 set(CPACK_SOURCE_IGNORE_FILES "/\\\\..*;\\\\.swp;~$;/build/;\\\\.tar\\\\.;\\\\.deb;\\\\.so") |
80 set(CPACK_SOURCE_IGNORE_FILES "/\\\\..*;\\\\.swp;~$;/build/;\\\\.tar\\\\.;\\\\.deb;\\\\.so") |
70 include(CPack) |
81 include(CPack) |
71 |
82 |
|
83 if(HAVE_MCABBER_COMPLETION_FLAGS) |
|
84 set(AVV_COMPL_VERSION "compl:4") |
|
85 else() |
|
86 set(AVV_COMPL_VERSION "compl:2 | compl:3") |
|
87 endif() |
72 configure_file(disco.avv.in disco.avv) |
88 configure_file(disco.avv.in disco.avv) |
73 |
89 |
74 ## Installation |
90 ## Installation |
75 install(TARGETS disco DESTINATION lib/mcabber) |
91 install(TARGETS disco DESTINATION lib/mcabber) |
76 install(FILES docs/disco.rc COPYING docs/todo.mdwn docs/readme.mdwn DESTINATION share/doc/${CPACK_PACKAGE_NAME}) |
92 install(FILES docs/disco.rc COPYING docs/todo.mdwn docs/readme.mdwn DESTINATION share/doc/${CPACK_PACKAGE_NAME}) |