mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 03:09:00 +08:00
17 lines
444 B
CMake
17 lines
444 B
CMake
cmake_minimum_required (VERSION 3.4)
|
|
project (http-parser)
|
|
|
|
if (BUILD_SHARED_LIBS)
|
|
SET(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
|
endif()
|
|
|
|
add_library(http_parser http_parser.c http_parser.h)
|
|
|
|
install(TARGETS http_parser
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin"
|
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib"
|
|
)
|
|
|
|
if (NOT SKIP_INSTALL_HEADERS)
|
|
install(FILES http_parser.h DESTINATION "${CMAKE_INSTALL_PREFIX}/include")
|
|
endif() |