1 # Builds the common module
18 highlightrulemanager.cpp
45 serializers/serializers.cpp
47 protocols/datastream/datastreampeer.cpp
48 protocols/legacy/legacypeer.cpp
56 list(APPEND SOURCES qt5cliparser.cpp)
58 list(APPEND SOURCES cliparser.cpp)
61 if (QCA2_FOUND OR QCA2-QT5_FOUND)
62 set(SOURCES ${SOURCES} keyevent.cpp)
66 add_definitions(-DHAVE_ZLIB)
67 include_directories(${ZLIB_INCLUDE_DIRS})
69 set(SOURCES ${SOURCES} ../../3rdparty/miniz/miniz.c)
73 set(SOURCES ${SOURCES} ../../3rdparty/sha512/sha512.c)
77 add_definitions(-DHAVE_SYSLOG)
81 set(SOURCES ${SOURCES} mac_utils.cpp)
85 set(SOURCES ${SOURCES} logbacktrace_win.cpp)
88 add_definitions(-DHAVE_EXECINFO)
89 include_directories(${EXECINFO_INCLUDES})
91 set(SOURCES ${SOURCES} logbacktrace_unix.cpp)
94 qt_add_resources(SOURCES ${COMMON_RCS})
96 add_library(mod_common STATIC ${SOURCES})
97 qt_use_modules(mod_common Core Network)
100 target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
103 target_link_libraries(mod_common ${CMAKE_DL_LIBS} ${EXECINFO_LIBRARIES})
106 target_link_libraries(mod_common ${ZLIB_LIBRARIES})
109 # This is needed so translations are generated before trying to build the qrc.
110 # Should probably find a nicer solution with proper dependencies between the involved files, though...
111 add_dependencies(mod_common po)