This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
stellar-stellar/decoders/http/CMakeLists.txt
2024-08-21 09:38:18 +08:00

14 lines
838 B
CMake

add_definitions(-fPIC)
set(HTTP_SRC ${DEPS_SRC} http_decoder.cpp http_decoder_utils.cpp http_decoder_half.cpp
http_decoder_table.cpp http_decoder_string.cpp http_content_decompress.cpp
http_decoder_result_queue.cpp http_decoder_stat.cpp http_decoder_tunnel.cpp)
add_library(http_decoder STATIC ${HTTP_SRC})
set_target_properties(http_decoder PROPERTIES LINK_FLAGS "-Wl,--version-script=${PROJECT_SOURCE_DIR}/src/version.map")
target_include_directories(http_decoder PUBLIC ${CMAKE_SOURCE_DIR}/deps/)
target_link_libraries(http_decoder z llhttp-static fieldstat4)
target_link_libraries(http_decoder brotli-dec-static brotli-common-static )
set_target_properties(http_decoder PROPERTIES PREFIX "")
#install(TARGETS http_decoder LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/plugin/${lib_name} COMPONENT LIBRARIES)