uclient-http: end custom header lines with CRLF
[project/uclient.git] / CMakeLists.txt
index 0d48175..ee7d91d 100644 (file)
@@ -13,14 +13,15 @@ IF(APPLE)
 ENDIF()
 
 ADD_LIBRARY(uclient SHARED uclient.c uclient-http.c uclient-utils.c)
 ENDIF()
 
 ADD_LIBRARY(uclient SHARED uclient.c uclient-http.c uclient-utils.c)
-TARGET_LINK_LIBRARIES(uclient ubox ustream-ssl)
+TARGET_LINK_LIBRARIES(uclient ubox dl)
 
 
-ADD_EXECUTABLE(uclient-example uclient-example.c)
-TARGET_LINK_LIBRARIES(uclient-example uclient)
+ADD_EXECUTABLE(uclient-fetch uclient-fetch.c)
+TARGET_LINK_LIBRARIES(uclient-fetch uclient)
 
 INSTALL(FILES uclient.h uclient-utils.h
        DESTINATION include/libubox
 )
 
 INSTALL(FILES uclient.h uclient-utils.h
        DESTINATION include/libubox
 )
-INSTALL(TARGETS uclient
+INSTALL(TARGETS uclient uclient-fetch
        LIBRARY DESTINATION lib
        LIBRARY DESTINATION lib
+       RUNTIME DESTINATION bin
 )
 )