1. place directory 'dc' in weechat/src/plugins, among with other plugins
2. edit file weechat/src/plugins/CMakeLists.txt, add the following strings somewhere

IF(NOT DISABLE_DC)
  ADD_SUBDIRECTORY( dc )
ENDIF(NOT DISABLE_DC)

3. then build weechat as always using cmake

