2015-02-13 02:31:20 +05:30
|
|
|
Index: CMakeLists.txt
|
|
|
|
===================================================================
|
|
|
|
--- CMakeLists.txt (revision 250)
|
|
|
|
+++ CMakeLists.txt (working copy)
|
|
|
|
@@ -51,4 +51,4 @@
|
2015-04-13 02:20:52 +05:30
|
|
|
|
2015-02-13 02:31:20 +05:30
|
|
|
add_subdirectory(quazip)
|
2015-04-13 02:20:52 +05:30
|
|
|
|
2015-02-13 02:31:20 +05:30
|
|
|
-install(FILES FindQuaZip.cmake DESTINATION ${CMAKE_ROOT}/Modules)
|
|
|
|
+#install(FILES FindQuaZip.cmake DESTINATION ${CMAKE_ROOT}/Modules)
|
|
|
|
Index: quazip/CMakeLists.txt
|
|
|
|
===================================================================
|
|
|
|
--- quazip/CMakeLists.txt (revision 250)
|
|
|
|
+++ quazip/CMakeLists.txt (working copy)
|
2015-03-17 02:26:27 +05:30
|
|
|
@@ -14,10 +14,14 @@
|
2015-02-13 02:31:20 +05:30
|
|
|
qt_wrap_cpp(MOC_SRCS ${PUBLIC_HEADERS})
|
|
|
|
set(SRCS ${SRCS} ${MOC_SRCS})
|
2015-04-13 02:20:52 +05:30
|
|
|
|
2015-02-13 02:31:20 +05:30
|
|
|
-add_library(quazip SHARED ${SRCS})
|
|
|
|
-set_target_properties(quazip PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
|
|
|
+add_library(quazip STATIC ${SRCS})
|
|
|
|
+#set_target_properties(quazip PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
|
|
|
# Link against ZLIB_LIBRARIES if needed (on Windows this variable is empty)
|
|
|
|
-target_link_libraries(quazip ${QT_QTMAIN_LIBRARY} ${QT_QTCORE_LIBRARY} ${ZLIB_LIBRARIES})
|
|
|
|
+target_link_libraries(quazip ${ZLIB_LIBRARIES})
|
|
|
|
+qt5_use_modules(quazip Core)
|
2015-03-17 02:26:27 +05:30
|
|
|
+if(WIN32)
|
|
|
|
+ add_definitions(-DZ_PREFIX)
|
|
|
|
+endif()
|
2015-04-13 02:20:52 +05:30
|
|
|
|
2015-02-13 02:31:20 +05:30
|
|
|
install(FILES ${PUBLIC_HEADERS} DESTINATION include/quazip)
|
2015-04-13 02:20:52 +05:30
|
|
|
install(TARGETS quazip LIBRARY DESTINATION ${LIB_DESTINATION} ARCHIVE DESTINATION ${LIB_DESTINATION} RUNTIME DESTINATION ${LIB_DESTINATION})
|