1 # Builds the common module
18 highlightrulemanager.cpp
46 serializers/serializers.cpp
48 protocols/datastream/datastreampeer.cpp
49 protocols/legacy/legacypeer.cpp
57 list(APPEND SOURCES qt5cliparser.cpp)
59 list(APPEND SOURCES cliparser.cpp)
62 if (QCA2_FOUND OR QCA2-QT5_FOUND)
63 set(SOURCES ${SOURCES} keyevent.cpp)
67 add_definitions(-DHAVE_ZLIB)
68 include_directories(${ZLIB_INCLUDE_DIRS})
70 set(SOURCES ${SOURCES} ../../3rdparty/miniz/miniz.c)
74 set(SOURCES ${SOURCES} ../../3rdparty/sha512/sha512.c)
78 add_definitions(-DHAVE_SYSLOG)
82 set(SOURCES ${SOURCES} mac_utils.cpp)
86 set(SOURCES ${SOURCES} logbacktrace_win.cpp)
89 add_definitions(-DHAVE_EXECINFO)
90 include_directories(${EXECINFO_INCLUDES})
92 set(SOURCES ${SOURCES} logbacktrace_unix.cpp)
95 qt_add_resources(SOURCES ${COMMON_RCS})
97 add_library(mod_common STATIC ${SOURCES})
98 qt_use_modules(mod_common Core Network)
101 target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
104 target_link_libraries(mod_common ${CMAKE_DL_LIBS} ${EXECINFO_LIBRARIES})
107 target_link_libraries(mod_common ${ZLIB_LIBRARIES})
110 # This is needed so translations are generated before trying to build the qrc.
111 # Should probably find a nicer solution with proper dependencies between the involved files, though...
112 add_dependencies(mod_common po)