CMakeLists.txt 525 B

123456789101112
  1. file(GLOB SRCS "*.c" "*.cpp")
  2. file(GLOB PUBLIC_HEADERS "*.h")
  3. qt4_wrap_cpp(MOC_SRCS ${PUBLIC_HEADERS})
  4. set(SRCS ${SRCS} ${MOC_SRCS})
  5. add_library(quazip SHARED ${SRCS})
  6. set_target_properties(quazip PROPERTIES VERSION 1 SOVERSION 1.0.0)
  7. target_link_libraries(quazip ${QT_QTMAIN_LIBRARY} ${QT_QTCORE_LIBRARY} -lz)
  8. install(FILES ${PUBLIC_HEADERS} DESTINATION include/quazip)
  9. install(TARGETS quazip LIBRARY DESTINATION ${LIB_DESTINATION} ARCHIVE DESTINATION ${LIB_DESTINATION} RUNTIME DESTINATION ${LIB_DESTINATION})