diff --git a/CMakeLists.txt b/CMakeLists.txt index 874b9be4f..727f0e5c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11) CMAKE_POLICY(SET CMP0003 NEW) +SET(CMAKE_POSITION_INDEPENDENT_CODE ON) PROJECT(picotls) @@ -180,3 +181,12 @@ IF (BUILD_FUZZER) TARGET_LINK_LIBRARIES(fuzz-client-hello picotls-core picotls-openssl ${OPENSSL_LIBRARIES} ${LIB_FUZZER}) ENDIF() + +INSTALL (DIRECTORY ${CMAKE_SOURCE_DIR}/include/ + DESTINATION include + FILES_MATCHING PATTERN "*.h") + +INSTALL(TARGETS picotls-core picotls-openssl + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib)