# $NiH$

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../lib
  ${CMAKE_CURRENT_BINARY_DIR}/..)

set(zipcmp_SRCS zipcmp.c)
if(MSVC)
  set(zipcmp_SRCS ${zipcmp_SRCS} unistd.c)
endif(MSVC)
ADD_EXECUTABLE(zipcmp ${zipcmp_SRCS})
TARGET_LINK_LIBRARIES(zipcmp zip)

set(zipmerge_SRCS zipmerge.c)
if(MSVC)
  set(zipmerge_SRCS ${zipmerge_SRCS} unistd.c)
endif(MSVC)
ADD_EXECUTABLE(zipmerge ${zipmerge_SRCS})
TARGET_LINK_LIBRARIES(zipmerge zip)

set(ziptorrent_SRCS ziptorrent.c)
if(MSVC)
  set(ziptorrent_SRCS ${ziptorrent_SRCS} unistd.c)
endif(MSVC)
ADD_EXECUTABLE(ziptorrent ${ziptorrent_SRCS})
TARGET_LINK_LIBRARIES(ziptorrent zip)
