15 lines
378 B
CMake
15 lines
378 B
CMake
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
|
|
|
|
FIND_PACKAGE(PkgConfig)
|
|
FIND_PACKAGE(Threads)
|
|
|
|
PKG_CHECK_MODULES(JANSSON REQUIRED jansson)
|
|
PKG_CHECK_MODULES(CURL REQUIRED libcurl)
|
|
PKG_CHECK_MODULES(EVENT REQUIRED libevent libevent_pthreads)
|
|
PKG_CHECK_MODULES(GLIB2 REQUIRED glib-2.0)
|
|
|
|
ADD_DEFINITIONS("-Wall -Werror -std=c11 -D_GNU_SOURCE")
|
|
|
|
ADD_SUBDIRECTORY(libdc)
|
|
ADD_SUBDIRECTORY(ncdc)
|