CMakeLists.txt 489 B

12345678910111213141516
  1. project (QuaZip)
  2. cmake_minimum_required(VERSION 2.6)
  3. set(qt_min_version "4.5.0")
  4. find_package(Qt4 REQUIRED)
  5. set(QT_USE_QTGUI false)
  6. include(${QT_USE_FILE})
  7. set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)")
  8. set(LIB_DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE STRING "Library directory name" FORCE)
  9. include_directories(${CMAKE_SOURCE_DIR})
  10. add_subdirectory(quazip)
  11. install(FILES FindQuaZip.cmake DESTINATION ${CMAKE_ROOT}/Modules)