blob: 35befd9b88dd3f3806eabe8f34698a9fc060a245 [file] [log] [blame]
Mathias Raouldb36fda2021-04-02 18:02:24 +00001diff --git a/CMakeLists.txt b/CMakeLists.txt
2index 5142bac..7b95f74 100644
3--- a/CMakeLists.txt
4+++ b/CMakeLists.txt
5@@ -33,6 +33,8 @@ ENDIF(NOT CMAKE_BUILD_TYPE)
6 SET(CMAKE_C_FLAGS "-std=c99 -Wall -g ${CC_WARNING_FLAGS} ${CMAKE_C_FLAGS}")
7 SET(CMAKE_C_FLAGS_DEBUG "-O0")
8 SET(CMAKE_C_FLAGS_RELEASE "-O2")
9+SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
10+SET(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY true)
11
12 INCLUDE_DIRECTORIES(
13 ${OPENSSL_INCLUDE_DIR}
14@@ -118,6 +120,16 @@ TARGET_LINK_LIBRARIES(examples-echo quicly ${OPENSSL_LIBRARIES} ${CMAKE_DL_LIBS}
15
16 ADD_EXECUTABLE(udpfw t/udpfw.c)
17
18+INSTALL (
19+ DIRECTORY ${CMAKE_SOURCE_DIR}/include/
20+ DESTINATION include
21+ FILES_MATCHING PATTERN "*.h")
22+
23+INSTALL(TARGETS quicly
24+ RUNTIME DESTINATION bin
25+ LIBRARY DESTINATION lib
26+ ARCHIVE DESTINATION lib)
27+
28 ADD_CUSTOM_TARGET(check env BINARY_DIR=${CMAKE_CURRENT_BINARY_DIR} WITH_DTRACE=${WITH_DTRACE} prove --exec "sh -c" -v ${CMAKE_CURRENT_BINARY_DIR}/*.t t/*.t
29 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
30 DEPENDS cli test.t)