mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
Fix win compilations
This commit is contained in:
7
thirdparty/quazip/quazip/CMakeLists.txt
vendored
7
thirdparty/quazip/quazip/CMakeLists.txt
vendored
@@ -3,6 +3,13 @@ file(GLOB PUBLIC_HEADERS "*.h")
|
|||||||
qt4_wrap_cpp(MOC_SRCS ${PUBLIC_HEADERS})
|
qt4_wrap_cpp(MOC_SRCS ${PUBLIC_HEADERS})
|
||||||
set(SRCS ${SRCS} ${MOC_SRCS})
|
set(SRCS ${SRCS} ${MOC_SRCS})
|
||||||
|
|
||||||
|
add_definitions( -DQUAZIP_BUILD )
|
||||||
|
|
||||||
|
IF(WIN32)
|
||||||
|
add_library(quazip SHARED ${SRCS})
|
||||||
|
ELSE()
|
||||||
add_library(quazip STATIC ${SRCS})
|
add_library(quazip STATIC ${SRCS})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
set_target_properties(quazip PROPERTIES VERSION 1 SOVERSION 1.0.0)
|
set_target_properties(quazip PROPERTIES VERSION 1 SOVERSION 1.0.0)
|
||||||
target_link_libraries(quazip ${QT_QTMAIN_LIBRARY} ${QT_QTCORE_LIBRARY} -lz)
|
target_link_libraries(quazip ${QT_QTMAIN_LIBRARY} ${QT_QTCORE_LIBRARY} -lz)
|
||||||
|
Reference in New Issue
Block a user