aboutsummaryrefslogtreecommitdiff
path: root/ports/http-parser/CMakeLists.txt
blob: 6e9067a04302dd2a312754180337ef955bde9487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()