source: trunk/third-party/event2.cmake

Last change on this file was 14350, checked in by mikedld, 3 years ago

#5828: Initial CMake build system support

File size: 807 bytes
Line 
1cmake_minimum_required(VERSION 2.8)
2project(event C)
3
4set(${PROJECT_NAME}_ADD_SOURCES
5    win32select.c
6    evthread_win32.c
7    buffer_iocp.c
8    event_iocp.c
9    bufferevent_async.c
10)
11
12add_definitions(-DHAVE_CONFIG_H)
13
14include_directories(include compat WIN32-Code)
15
16add_library(${PROJECT_NAME} STATIC
17    event.c
18    buffer.c
19    bufferevent.c
20    bufferevent_sock.c
21    bufferevent_pair.c
22    listener.c
23    evmap.c
24    log.c
25    evutil.c
26    strlcpy.c
27    signal.c
28    bufferevent_filter.c
29    evthread.c
30    bufferevent_ratelim.c
31    evutil_rand.c
32    event_tagging.c
33    http.c
34    evdns.c
35    evrpc.c
36    ${${PROJECT_NAME}_ADD_SOURCES}
37)
38
39install(TARGETS ${PROJECT_NAME} DESTINATION lib)
40install(DIRECTORY include/event2 DESTINATION include)
41install(DIRECTORY WIN32-Code/event2 DESTINATION include)
Note: See TracBrowser for help on using the repository browser.