1 # Builds the common module
19 expressionmatchtests.cpp
20 highlightrulemanager.cpp
48 serializers/serializers.cpp
50 protocols/datastream/datastreampeer.cpp
51 protocols/legacy/legacypeer.cpp
59 list(APPEND SOURCES qt5cliparser.cpp)
61 list(APPEND SOURCES cliparser.cpp)
64 if (QCA2_FOUND OR QCA2-QT5_FOUND)
65 set(SOURCES ${SOURCES} keyevent.cpp)
69 add_definitions(-DHAVE_ZLIB)
70 include_directories(${ZLIB_INCLUDE_DIRS})
72 set(SOURCES ${SOURCES} ../../3rdparty/miniz/miniz.c)
76 set(SOURCES ${SOURCES} ../../3rdparty/sha512/sha512.c)
80 add_definitions(-DHAVE_SYSLOG)
84 set(SOURCES ${SOURCES} mac_utils.cpp)
88 set(SOURCES ${SOURCES} logbacktrace_win.cpp)
91 add_definitions(-DHAVE_EXECINFO)
92 include_directories(${EXECINFO_INCLUDES})
94 set(SOURCES ${SOURCES} logbacktrace_unix.cpp)
97 qt_add_resources(SOURCES ${COMMON_RCS})
99 add_library(mod_common STATIC ${SOURCES})
100 qt_use_modules(mod_common Core Network)
103 target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
106 target_link_libraries(mod_common ${CMAKE_DL_LIBS} ${EXECINFO_LIBRARIES})
109 target_link_libraries(mod_common ${ZLIB_LIBRARIES})
112 # This is needed so translations are generated before trying to build the qrc.
113 # Should probably find a nicer solution with proper dependencies between the involved files, though...
114 add_dependencies(mod_common po)