cmake: add zim to linux and macOS (#234)

This commit is contained in:
shenlebantongying 2022-11-29 00:37:24 -05:00 committed by GitHub
parent 9c95ec2ac5
commit 3f0ca1e456
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,6 +59,8 @@ if (UNIX)
opencc
vorbis # .ogg
vorbisfile
liblzma
libzstd
)
if (WITH_FFMPEG_PLAYER)
pkg_check_modules(FFMPEG REQUIRED IMPORTED_TARGET
@ -97,6 +99,7 @@ add_compile_definitions(PROGRAM_VERSION="${PROJECT_VERSION}")
add_compile_definitions(CMAKE_USED_HACK) # temporal hack to avoid breaking qmake build
add_compile_definitions(
MAKE_ZIM_SUPPORT
MAKE_QTMULTIMEDIA_PLAYER
MAKE_CHINESE_CONVERSION_SUPPORT
)
@ -467,7 +470,7 @@ if(MSVC)
add_compile_definitions(INCLUDE_LIBRARY_PATH)
target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC
${CMAKE_SOURCE_DIR}/winlibs/include/
)
)
endif()
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE