mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
cmake: add zim to linux and macOS (#234)
This commit is contained in:
parent
9c95ec2ac5
commit
3f0ca1e456
|
@ -59,6 +59,8 @@ if (UNIX)
|
||||||
opencc
|
opencc
|
||||||
vorbis # .ogg
|
vorbis # .ogg
|
||||||
vorbisfile
|
vorbisfile
|
||||||
|
liblzma
|
||||||
|
libzstd
|
||||||
)
|
)
|
||||||
if (WITH_FFMPEG_PLAYER)
|
if (WITH_FFMPEG_PLAYER)
|
||||||
pkg_check_modules(FFMPEG REQUIRED IMPORTED_TARGET
|
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(CMAKE_USED_HACK) # temporal hack to avoid breaking qmake build
|
||||||
add_compile_definitions(
|
add_compile_definitions(
|
||||||
|
MAKE_ZIM_SUPPORT
|
||||||
MAKE_QTMULTIMEDIA_PLAYER
|
MAKE_QTMULTIMEDIA_PLAYER
|
||||||
MAKE_CHINESE_CONVERSION_SUPPORT
|
MAKE_CHINESE_CONVERSION_SUPPORT
|
||||||
)
|
)
|
||||||
|
@ -466,8 +469,8 @@ target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_compile_definitions(INCLUDE_LIBRARY_PATH)
|
add_compile_definitions(INCLUDE_LIBRARY_PATH)
|
||||||
target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC
|
target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC
|
||||||
${CMAKE_SOURCE_DIR}/winlibs/include/
|
${CMAKE_SOURCE_DIR}/winlibs/include/
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE
|
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE
|
||||||
|
@ -488,11 +491,11 @@ endif()
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE
|
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE
|
||||||
# pkg-config packages need manually link
|
# pkg-config packages need manually link
|
||||||
PkgConfig::PKGCONFIG_DEPS
|
PkgConfig::PKGCONFIG_DEPS
|
||||||
|
|
||||||
BZip2::BZip2
|
BZip2::BZip2
|
||||||
ZLIB::ZLIB #hidden requirement of dsl_details.cc and more?
|
ZLIB::ZLIB #hidden requirement of dsl_details.cc and more?
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
|
|
Loading…
Reference in a new issue