#
# Create the libraries.#
include(AddEventLibrary)add_event_library(event_core SOURCES ${SRC_CORE})add_event_library(event_extra
LIBRARIES event_core_shared
SOURCES ${SRC_EXTRA})if(NOT EVENT__DISABLE_OPENSSL)add_event_library(event_openssl
LIBRARIES event_core_shared ${OPENSSL_LIBRARIES}
SOURCES ${SRC_OPENSSL})endif()if(CMAKE_USE_PTHREADS_INIT)set(SRC_PTHREADS evthread_pthread.c)add_event_library(event_pthreads
LIBRARIES event_core_shared
SOURCES ${SRC_PTHREADS})endif()# library exists for historical reasons; it contains the contents of# both libevent_core and libevent_extra. You shouldn’t use it; it may# go away in a future version of Libevent.add_event_library(event SOURCES ${SRC_CORE} ${SRC_EXTRA})