1 # Builds the common module
42 protocols/datastream/datastreampeer.cpp
43 protocols/legacy/legacypeer.cpp
51 set(SOURCES ${SOURCES} keyevent.cpp)
55 add_definitions(-DHAVE_ZLIB)
56 include_directories(${ZLIB_INCLUDE_DIRS})
58 set(SOURCES ${SOURCES} ../../3rdparty/miniz/miniz.c)
62 add_definitions(-DHAVE_SYSLOG)
66 set(SOURCES ${SOURCES} mac_utils.cpp)
70 set(SOURCES ${SOURCES} logbacktrace_win.cpp)
73 add_definitions(-DHAVE_EXECINFO)
74 include_directories(${EXECINFO_INCLUDES})
76 set(SOURCES ${SOURCES} logbacktrace_unix.cpp)
79 qt_add_resources(SOURCES ${COMMON_RCS})
81 add_library(mod_common STATIC ${SOURCES})
82 qt_use_modules(mod_common Core Network)
85 target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
88 target_link_libraries(mod_common ${CMAKE_DL_LIBS} ${EXECINFO_LIBRARIES} ${ZLIB_LIBRARIES})
90 # This is needed so translations are generated before trying to build the qrc.
91 # Should probably find a nicer solution with proper dependencies between the involved files, though...
92 add_dependencies(mod_common po)