mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
cmake: handle libzip like the other libraries
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
24a1ab461b
commit
405e52fef9
1 changed files with 2 additions and 2 deletions
|
@ -34,6 +34,7 @@ ELSE()
|
|||
ENDIF()
|
||||
ENDIF()
|
||||
pkg_config_library(LIBXSLT libxslt)
|
||||
pkg_config_library(LIBZIP libzip)
|
||||
|
||||
SET(LIBDCDEVEL "" CACHE STRING "libraries")
|
||||
IF(DEFINED LIBDCDEVEL)
|
||||
|
@ -256,7 +257,6 @@ target_link_libraries( subsurface
|
|||
subsurface_statistics
|
||||
subsurface_corelib
|
||||
${SUBSURFACE_LINK_LIBRARIES}
|
||||
-lzip
|
||||
)
|
||||
|
||||
ADD_DEPENDENCIES(subsurface_statistics subsurface_generated_ui)
|
||||
|
@ -267,7 +267,7 @@ ADD_DEPENDENCIES(subsurface_corelib version)
|
|||
|
||||
MACRO(test NAME FILE)
|
||||
ADD_EXECUTABLE(${NAME} tests/${FILE} ${SUBSURFACE_RESOURCES})
|
||||
TARGET_LINK_LIBRARIES(${NAME} subsurface_corelib ${QT_TEST_LIBRARIES} ${SUBSURFACE_LINK_LIBRARIES} -lzip )
|
||||
TARGET_LINK_LIBRARIES(${NAME} subsurface_corelib ${QT_TEST_LIBRARIES} ${SUBSURFACE_LINK_LIBRARIES})
|
||||
ADD_TEST(NAME ${NAME} COMMAND ${NAME})
|
||||
ENDMACRO()
|
||||
|
||||
|
|
Loading…
Reference in a new issue