| 1 |
# Create a new CMake file for CloudCompare since the included ones are old-style |
| 2 |
|
| 3 |
project( quazip ) |
| 4 |
|
| 5 |
find_package( ZLIB REQUIRED ) |
| 6 |
find_package( Qt5 COMPONENTS Core REQUIRED ) |
| 7 |
|
| 8 |
add_library( ${PROJECT_NAME} STATIC ) |
| 9 |
|
| 10 |
target_sources( ${PROJECT_NAME} |
| 11 |
PUBLIC |
| 12 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/ioapi.h |
| 13 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quaadler32.h |
| 14 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quachecksum32.h |
| 15 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quacrc32.h |
| 16 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quagzipfile.h |
| 17 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quaziodevice.h |
| 18 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quazip_global.h |
| 19 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quazip.h |
| 20 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quazipdir.h |
| 21 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quazipfile.h |
| 22 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quazipfileinfo.h |
| 23 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quazipnewinfo.h |
| 24 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/unzip.h |
| 25 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/zip.h |
| 26 |
PRIVATE |
| 27 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/crypt.h |
| 28 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/JlCompress.h |
| 29 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/JlCompress.cpp |
| 30 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/qioapi.cpp |
| 31 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quaadler32.cpp |
| 32 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quacrc32.cpp |
| 33 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quagzipfile.cpp |
| 34 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quaziodevice.cpp |
| 35 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quazip.cpp |
| 36 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quazipdir.cpp |
| 37 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quazipfile.cpp |
| 38 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quazipfileinfo.cpp |
| 39 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/quazipnewinfo.cpp |
| 40 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/unzip.c |
| 41 |
${CMAKE_CURRENT_LIST_DIR}/quazip/quazip/zip.c |
| 42 |
) |
| 43 |
|
| 44 |
target_include_directories( ${PROJECT_NAME} |
| 45 |
PUBLIC |
| 46 |
${CMAKE_CURRENT_SOURCE_DIR}/quazip/quazip |
| 47 |
) |
| 48 |
|
| 49 |
target_compile_definitions( ${PROJECT_NAME} PUBLIC QUAZIP_STATIC ) |
| 50 |
|
| 51 |
target_link_libraries( ${PROJECT_NAME} Qt5::Core ZLIB::ZLIB ) |