+if (WIN32)
+ set(SOURCES ${SOURCES} logbacktrace_win.cpp)
+else()
+ if (EXECINFO_FOUND)
+ add_definitions(-DHAVE_EXECINFO)
+ include_directories(${EXECINFO_INCLUDES})
+ endif()
+ set(SOURCES ${SOURCES} logbacktrace_unix.cpp)
+endif()
+
+qt_add_resources(SOURCES ${COMMON_RCS})
+
+add_library(mod_common STATIC ${SOURCES})
+qt_use_modules(mod_common Core Network)
+
+if (APPLE)
+ target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
+endif(APPLE)