Skip to content

Commit

Permalink
Add Cmake install directives
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
  • Loading branch information
sknat committed Mar 3, 2020
1 parent c8c081e commit bffb487
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11)
CMAKE_POLICY(SET CMP0003 NEW)
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)

PROJECT(picotls)

Expand Down Expand Up @@ -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)

0 comments on commit bffb487

Please sign in to comment.