1 # Builds the common module
3 setup_qt_variables(Core Network)
43 protocols/legacy/legacypeer.cpp
73 protocols/legacy/legacypeer.h
76 set(HEADERS ${MOC_HDRS}
92 set(SOURCES ${SOURCES} keyevent.cpp)
93 set(HEADERS ${HEADERS} keyevent.h)
97 set(SOURCES ${SOURCES} mac_utils.cpp)
98 set(HEADERS ${HEADERS} mac_utils.h)
102 set(SOURCES ${SOURCES} logbacktrace_win.cpp)
103 endif(CMAKE_HOST_WIN32)
105 set(SOURCES ${SOURCES} logbacktrace_unix.cpp)
106 endif(CMAKE_HOST_UNIX)
108 include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${QUASSEL_QT_INCLUDES}) # for version.inc and version.gen
111 qt4_wrap_cpp(MOC ${MOC_HDRS})
114 set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES version.gen)
116 add_library(mod_common STATIC ${SOURCES} ${HEADERS} ${MOC})
117 set_target_properties(mod_common PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}")
120 target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
123 target_link_libraries(mod_common ${CMAKE_DL_LIBS})