goldendict-ng/winlibs/lib/msvc/cmake/xapian/xapian-config.cmake

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
694 B
CMake
Raw Normal View History

2022-10-05 09:50:44 +00:00
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)