2016-02-11 23:27:31 +01:00
|
|
|
add_subdirectory(includes)
|
|
|
|
|
2016-02-11 22:11:14 +01:00
|
|
|
include_directories(
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/includes"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/includes"
|
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(-DBUILDING_NGHTTP2)
|
|
|
|
|
|
|
|
set(NGHTTP2_SOURCES
|
|
|
|
nghttp2_pq.c nghttp2_map.c nghttp2_queue.c
|
|
|
|
nghttp2_frame.c
|
|
|
|
nghttp2_buf.c
|
|
|
|
nghttp2_stream.c nghttp2_outbound_item.c
|
|
|
|
nghttp2_session.c nghttp2_submit.c
|
|
|
|
nghttp2_helper.c
|
|
|
|
nghttp2_npn.c
|
|
|
|
nghttp2_hd.c nghttp2_hd_huffman.c nghttp2_hd_huffman_data.c
|
|
|
|
nghttp2_version.c
|
|
|
|
nghttp2_priority_spec.c
|
|
|
|
nghttp2_option.c
|
|
|
|
nghttp2_callbacks.c
|
|
|
|
nghttp2_mem.c
|
|
|
|
nghttp2_http.c
|
|
|
|
)
|
|
|
|
|
2016-02-15 01:57:13 +01:00
|
|
|
add_library(nghttp2-obj OBJECT ${NGHTTP2_SOURCES})
|
|
|
|
add_library(nghttp2 SHARED $<TARGET_OBJECTS:nghttp2-obj>)
|
2016-02-11 22:11:14 +01:00
|
|
|
#target_link_libraries(nghttp2 ...)
|
|
|
|
set_target_properties(nghttp2 PROPERTIES
|
|
|
|
COMPILE_FLAGS "${WARNCFLAGS} ${EXTRACFLAG}"
|
2016-02-11 23:06:35 +01:00
|
|
|
VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION})
|
2016-02-11 22:11:14 +01:00
|
|
|
|
|
|
|
install(TARGETS nghttp2
|
|
|
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
|
|
|
|
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libnghttp2.pc"
|
|
|
|
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|