From 613c68f1860a7432cb19eaf596fa1e891b435f13 Mon Sep 17 00:00:00 2001 From: Jaywalker Date: Mon, 8 Jul 2013 18:55:50 -0600 Subject: [PATCH] Made partial-zip compile using a shared lib and install headers --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa44fe3..a5e7ee4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,10 +24,14 @@ IF(BUILD_PARTIAL) add_definitions(-DCURL_STATICLIB) ENDIF(WIN32) - add_library(partial partial.c) + add_library(partial SHARED partial.c) target_link_libraries(partial ${CURL_LIBRARIES} ${ZLIB_LIBRARIES}) add_executable(partialzip test.c) target_link_libraries(partialzip partial) ENDIF(BUILD_PARTIAL) +install(TARGETS partialzip DESTINATION bin) +install(TARGETS partial DESTINATION lib) +install(FILES include/partial/partial.h DESTINATION include) +