mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-25 01:14:07 +00:00
14 lines
694 B
CMake
14 lines
694 B
CMake
SET(prefix "G:/xapian-install")
|
|
SET(exec_prefix "${prefix}")
|
|
SET(XAPIAN_SHARED OFF CACHE BOOL "Use shared xapian library")
|
|
SET(XAPIAN_SHARED_LIBRARY "${exec_prefix}/lib/libxapian.so.a" CACHE FILEPATH "Shared Xapian library")
|
|
SET(XAPIAN_STATIC_LIBRARY "${exec_prefix}/lib/libxapian.a" CACHE FILEPATH "Static Xapian library")
|
|
SET(XAPIAN_STATIC_DEP_LIBS ";zlib;rpcrt4;ws2_32" CACHE STRING "Dependencies of static xapian library")
|
|
IF(XAPIAN_SHARED)
|
|
SET(XAPIAN_LIBRARIES "${XAPIAN_SHARED_LIBRARY}")
|
|
ELSE()
|
|
SET(XAPIAN_LIBRARIES "${XAPIAN_STATIC_LIBRARY};${XAPIAN_STATIC_DEP_LIBS}")
|
|
ENDIF()
|
|
SET(XAPIAN_INCLUDE_DIR "${prefix}/include" CACHE PATH "Include path for Xapian")
|
|
SET(XAPIAN_FOUND ON)
|