Dave Wallace | 06bbab0 | 2022-11-30 22:29:07 -0500 | [diff] [blame] | 1 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 2 | index d1d6c09..90d7221 100644 |
| 3 | --- a/deps/picotls/CMakeLists.txt |
| 4 | +++ b/deps/picotls/CMakeLists.txt |
| 5 | @@ -13,6 +13,9 @@ IF (WITH_DTRACE) |
| 6 | ENDIF () |
| 7 | |
| 8 | SET(CMAKE_C_FLAGS "-std=c99 -Wall -O2 -g ${CC_WARNING_FLAGS} ${CMAKE_C_FLAGS}") |
| 9 | +SET(CMAKE_POSITION_INDEPENDENT_CODE ON) |
| 10 | +SET(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY true) |
| 11 | + |
| 12 | INCLUDE_DIRECTORIES( |
| 13 | deps/cifra/src/ext |
| 14 | deps/cifra/src |
| 15 | @@ -161,6 +164,15 @@ TARGET_LINK_LIBRARIES(ptlsbench ${PTLSBENCH_LIBS}) |
| 16 | |
| 17 | ADD_CUSTOM_TARGET(check env BINARY_DIR=${CMAKE_CURRENT_BINARY_DIR} prove --exec '' -v ${CMAKE_CURRENT_BINARY_DIR}/*.t t/*.t WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${TEST_EXES} cli) |
| 18 | |
| 19 | +INSTALL (DIRECTORY ${CMAKE_SOURCE_DIR}/include/ |
| 20 | + DESTINATION include |
| 21 | + FILES_MATCHING PATTERN "*.h") |
| 22 | + |
| 23 | +INSTALL(TARGETS picotls-core picotls-openssl |
| 24 | + RUNTIME DESTINATION bin |
| 25 | + LIBRARY DESTINATION lib |
| 26 | + ARCHIVE DESTINATION lib) |
| 27 | + |
| 28 | IF (CMAKE_SYSTEM_NAME STREQUAL "Linux") |
| 29 | SET(CMAKE_C_FLAGS "-D_GNU_SOURCE -pthread ${CMAKE_C_FLAGS}") |
| 30 | ELSEIF ("${CMAKE_SYSTEM_NAME}" MATCHES "SunOS") |