summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl/Testing/CMakeLists.txt
blob: 214410fd5695a04cbaeeb80dc387b2e999a9984c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SET(CURL_TESTS
    ftpget
    ftpgetresp
    ftpupload
    getinmemory
    persistant
    sepheaders
    simple
   )

CONFIGURE_FILE(${LIBCURL_SOURCE_DIR}/Testing/testconfig.h.in
               ${LIBCURL_BINARY_DIR}/Testing/testconfig.h)

INCLUDE_DIRECTORIES(${LIBCURL_BINARY_DIR}/Testing)

FOREACH(TEST ${CURL_TESTS})
  ADD_EXECUTABLE(${TEST} ${TEST}.c)
  TARGET_LINK_LIBRARIES(${TEST} cmcurl)
ENDFOREACH(TEST)