# set all include directories for in and out of source builds
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${ZLIB_INCLUDE_DIRS}
)
file(GLOB SRCS "*.c" "*.cpp")
file(GLOB PUBLIC_HEADERS "*.h")
# Must be added to enable export macro
ADD_DEFINITIONS(-DQUAZIP_BUILD)
qt_wrap_cpp(MOC_SRCS ${PUBLIC_HEADERS})
set(SRCS ${SRCS} ${MOC_SRCS})
add_library(${QUAZIP_LIB_TARGET_NAME} SHARED ${SRCS})
add_library(quazip_static STATIC ${SRCS})
# Windows uses .lib extension for both static and shared library
# *nix systems use different extensions for SHARED and STATIC library and by convention both libraries have the same name
if (NOT WIN32)
set_target_properties(quazip_static PROPERTIES OUTPUT_NAME quazip${QUAZIP_LIB_VERSION_SUFFIX})
endif ()
set_target_properties(${QUAZIP_LIB_TARGET_NAME} quazip_static PROPERTIES VERSION 1.0.0 SOVERSION 1 DEBUG_POSTFIX d)
# Link against ZLIB_LIBRARIES if needed (on Windows this variable is empty)
target_link_libraries(${QUAZIP_LIB_TARGET_NAME} quazip_static ${QT_QTMAIN_LIBRARY} ${QTCORE_LIBRARIES} ${ZLIB_LIBRARIES})
install(FILES ${PUBLIC_HEADERS} DESTINATION include/quazip${QUAZIP_LIB_VERSION_SUFFIX})
install(TARGETS ${QUAZIP_LIB_TARGET_NAME} quazip_static LIBRARY DESTINATION ${LIB_DESTINATION} ARCHIVE DESTINATION ${LIB_DESTINATION} RUNTIME DESTINATION ${LIB_DESTINATION})
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
quazip.rar (65个子文件)
quazip
quazip.vcproj 6KB
quagzipfile.cpp 4KB
quazip.h 25KB
JlCompress.cpp 12KB
quacrc32.h 1KB
Makefile.Debug 94KB
zip.c 70KB
quazipdir.cpp 16KB
run_moc.bat 138B
quazip.vcxproj 9KB
quazipfile.h 20KB
quazipnewinfo.h 8KB
ioapi.h 7KB
quazip.pro 3KB
quazip_global.h 2KB
quazipfileinfo.cpp 6KB
quazip.sln 882B
quaadler32.cpp 1KB
unzip.c 71KB
quagzipfile.h 4KB
zip.h 16KB
quazipdir.h 8KB
quaziodevice.cpp 9KB
qioapi.cpp 11KB
quazipfile.cpp 15KB
JlCompress.h 8KB
debian
libquazip0.symbols 6KB
quazipfileinfo.h 6KB
Makefile.Release 94KB
quaadler32.h 1KB
unzip.h 17KB
quaziodevice.h 3KB
doc
faq.dox 2KB
index.dox 7KB
usage.dox 4KB
CMakeLists.txt 1KB
quacrc32.cpp 1KB
quazip.pri 960B
Makefile 22KB
quachecksum32.h 2KB
quazip.vcxproj.filters 4KB
quazipnewinfo.cpp 11KB
crypt.h 5KB
quazip.cpp 22KB
ZlibDebugx86
zlib.h 94KB
zlib.lib 220KB
quazipd.dll 328KB
zdll.lib 17KB
quazipd.lib 80KB
zconf.h 16KB
zlib1.dll 101KB
ZlibReleasex86
zlib.h 94KB
zlib.lib 319KB
quazip.lib 80KB
zdll.lib 17KB
quazip.dll 177KB
zconf.h 16KB
zlib1.dll 73KB
ZlibReleasex64
zlib.h 94KB
zlib.lib 338KB
quazip.lib 82KB
zdll.lib 16KB
quazip.dll 209KB
zconf.h 16KB
zlib1.dll 84KB
共 65 条
- 1
资源评论
- 庆儿2019-10-15上次下载还没有使用,使用后再给出评价
- a499909132019-04-24感谢分享,参考
小卒曹阿瞒
- 粉丝: 124
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功