diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ad42d82b..bda2adf6a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -172,6 +172,10 @@ IF (WITH_FUSION) SET(TEST_EXES ${TEST_EXES} test-fusion.t) LIST(APPEND PTLSBENCH_LIBS picotls-fusion) + + INSTALL( + TARGETS picotls-fusion + ) ENDIF () ADD_EXECUTABLE(ptlsbench t/ptlsbench.c) @@ -230,3 +234,17 @@ IF (BUILD_FUZZER) TARGET_LINK_LIBRARIES(fuzz-client-hello picotls-core picotls-openssl ${OPENSSL_CRYPTO_LIBRARIES} ${LIB_FUZZER}) ENDIF() + +INSTALL( + TARGETS picotls-core picotls-openssl picotls-minicrypto + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib + INCLUDES DESTINATION include +) + +INSTALL( + DIRECTORY ${CMAKE_SOURCE_DIR}/include/ + DESTINATION include + FILES_MATCHING PATTERN "*.h*" +)