From 3b651930878645601d2a17440bab06ac02bf83db Mon Sep 17 00:00:00 2001 From: Daniel Brunner <0xFEEDC0DE64@gmail.com> Date: Sun, 7 Oct 2018 16:06:22 +0200 Subject: [PATCH] Added CMakeLists.txt --- CMakeLists.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..fe85e2d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,42 @@ +project(Quazip) + +set(HEADERS + crypt.h + ioapi.h + JlCompress.h + quaadler32.h + quachecksum32.h + quacrc32.h + quagzipfile.h + quaziodevice.h + quazipdir.h + quazipfile.h + quazipfileinfo.h + quazip_global.h + quazip.h + quazipnewinfo.h + unzip.h + zip.h +) + +set(SOURCES + JlCompress.cpp + qioapi.cpp + quaadler32.cpp + quacrc32.cpp + quagzipfile.cpp + quaziodevice.cpp + quazip.cpp + quazipdir.cpp + quazipfile.cpp + quazipfileinfo.cpp + quazipnewinfo.cpp +) + +add_library(quazip ${HEADERS} ${SOURCES}) + +target_compile_definitions(quazip PRIVATE QUAZIP_BUILD) + +target_link_libraries(quazip Qt5::Core zlib) + +target_include_directories(quazip PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})