
########### next target ###############

set(filesystemzip_LIB_SRCS
   export.cpp
   filesystemzip.cpp
   filesystemzip.h
   filesystemzip_c.cpp
)

if (ZLIB_FOUND)
  add_library(filesystemzip MODULE ${filesystemzip_LIB_SRCS})

  include_directories(${ZLIB_INCLUDE_DIR})

  target_link_libraries(filesystemzip ${spark_libs} ${ZLIB_LIBRARIES})

  if (NOT APPLE)
     set_target_properties(filesystemzip PROPERTIES VERSION 0.0.0 SOVERSION 0)
  endif (NOT APPLE)

  install(TARGETS filesystemzip DESTINATION ${LIBDIR}/${CMAKE_PROJECT_NAME})
endif (ZLIB_FOUND)
