1 # Builds the common module
19 highlightrulemanager.cpp
47 serializers/serializers.cpp
49 protocols/datastream/datastreampeer.cpp
50 protocols/legacy/legacypeer.cpp
58 list(APPEND SOURCES qt5cliparser.cpp)
60 list(APPEND SOURCES cliparser.cpp)
63 if (QCA2_FOUND OR QCA2-QT5_FOUND)
64 set(SOURCES ${SOURCES} keyevent.cpp)
68 add_definitions(-DHAVE_ZLIB)
69 include_directories(${ZLIB_INCLUDE_DIRS})
71 set(SOURCES ${SOURCES} ../../3rdparty/miniz/miniz.c)
75 set(SOURCES ${SOURCES} ../../3rdparty/sha512/sha512.c)
79 add_definitions(-DHAVE_SYSLOG)
83 set(SOURCES ${SOURCES} mac_utils.cpp)
87 set(SOURCES ${SOURCES} logbacktrace_win.cpp)
90 add_definitions(-DHAVE_EXECINFO)
91 include_directories(${EXECINFO_INCLUDES})
93 set(SOURCES ${SOURCES} logbacktrace_unix.cpp)
96 qt_add_resources(SOURCES ${COMMON_RCS})
98 add_library(mod_common STATIC ${SOURCES})
99 qt_use_modules(mod_common Core Network)
102 target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
105 target_link_libraries(mod_common ${CMAKE_DL_LIBS} ${EXECINFO_LIBRARIES})
108 target_link_libraries(mod_common ${ZLIB_LIBRARIES})
111 # This is needed so translations are generated before trying to build the qrc.
112 # Should probably find a nicer solution with proper dependencies between the involved files, though...
113 add_dependencies(mod_common po)