CMakeLists.txt 613 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. set(CURL_EXAMPLES
  2. 10-at-a-time
  3. anyauthput
  4. cookie_interface
  5. debug
  6. fileupload
  7. fopen
  8. ftpget
  9. ftpgetresp
  10. ftpupload
  11. getinfo
  12. getinmemory
  13. http-post
  14. httpcustomheader
  15. https
  16. post-callback
  17. postit2
  18. sendrecv
  19. simple
  20. simplepost
  21. simplessl)
  22. if(NOT WIN32)
  23. set(CURL_EXAMPLES ${CURL_EXAMPLES}
  24. httpput
  25. multi-debugcallback
  26. multi-double
  27. multi-post
  28. multi-single
  29. persistant
  30. sepheaders
  31. multi-app )
  32. endif(NOT WIN32)
  33. foreach(EXAMPLE ${CURL_EXAMPLES})
  34. add_executable(${EXAMPLE} ${EXAMPLE}.c)
  35. target_link_libraries(${EXAMPLE} cmcurl)
  36. endforeach(EXAMPLE)