1 # Builds the common module
19 expressionmatchtests.cpp
20 highlightrulemanager.cpp
35 nickhighlightmatcher.cpp
49 serializers/serializers.cpp
51 protocols/datastream/datastreampeer.cpp
52 protocols/legacy/legacypeer.cpp
60 list(APPEND SOURCES qt5cliparser.cpp)
62 list(APPEND SOURCES cliparser.cpp)
65 if (QCA2_FOUND OR QCA2-QT5_FOUND)
66 set(SOURCES ${SOURCES} keyevent.cpp)
70 add_definitions(-DHAVE_ZLIB)
71 include_directories(${ZLIB_INCLUDE_DIRS})
73 set(SOURCES ${SOURCES} ../../3rdparty/miniz/miniz.c)
77 set(SOURCES ${SOURCES} ../../3rdparty/sha512/sha512.c)
81 add_definitions(-DHAVE_SYSLOG)
85 set(SOURCES ${SOURCES} mac_utils.cpp)
89 set(SOURCES ${SOURCES} logbacktrace_win.cpp)
92 add_definitions(-DHAVE_EXECINFO)
93 include_directories(${EXECINFO_INCLUDES})
95 set(SOURCES ${SOURCES} logbacktrace_unix.cpp)
98 qt_add_resources(SOURCES ${COMMON_RCS})
100 add_library(mod_common STATIC ${SOURCES})
101 qt_use_modules(mod_common Core Network)
104 target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
107 target_link_libraries(mod_common ${CMAKE_DL_LIBS} ${EXECINFO_LIBRARIES})
110 target_link_libraries(mod_common ${ZLIB_LIBRARIES})
113 # This is needed so translations are generated before trying to build the qrc.
114 # Should probably find a nicer solution with proper dependencies between the involved files, though...
115 add_dependencies(mod_common po)