1 # Builds the common module
3 setup_qt_variables(Core Network)
42 protocols/datastream/datastreampeer.cpp
43 protocols/legacy/legacypeer.cpp
71 protocols/datastream/datastreampeer.h
72 protocols/legacy/legacypeer.h
75 set(HEADERS ${MOC_HDRS}
92 set(SOURCES ${SOURCES} keyevent.cpp)
93 set(HEADERS ${HEADERS} keyevent.h)
97 set(SOURCES ${SOURCES} ../../3rdparty/miniz/miniz.c)
101 set(SOURCES ${SOURCES} mac_utils.cpp)
102 set(HEADERS ${HEADERS} mac_utils.h)
106 set(SOURCES ${SOURCES} logbacktrace_win.cpp)
107 endif(CMAKE_HOST_WIN32)
109 set(SOURCES ${SOURCES} logbacktrace_unix.cpp)
110 endif(CMAKE_HOST_UNIX)
112 include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${QUASSEL_QT_INCLUDES}) # for version.inc and version.gen
115 qt4_wrap_cpp(MOC ${MOC_HDRS})
118 set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES version.gen)
120 add_library(mod_common STATIC ${SOURCES} ${HEADERS} ${MOC})
121 set_target_properties(mod_common PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}")
124 target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
127 target_link_libraries(mod_common ${CMAKE_DL_LIBS})