1 add_executable(nominatim export.c geometry.cpp import.c index.c input.c nominatim.c postgresql.c sprompt.c)
2 include(CheckSymbolExists)
4 CHECK_SYMBOL_EXISTS(bswap_32 "byteswap.h" HAVE_BYTESWAP)
5 CHECK_SYMBOL_EXISTS(bswap32 "sys/endian.h" HAVE_SYS_ENDIAN)
7 find_package(ZLIB REQUIRED)
8 find_package(BZip2 REQUIRED)
9 find_package(LibXml2 REQUIRED)
11 include_directories(${LIBXML2_INCLUDE_DIR})
13 target_compile_definitions(nominatim
14 PRIVATE HAVE_BYTESWAP=$<BOOL:${HAVE_BYTESWAP}>
15 PRIVATE HAVE_SYS_ENDIAN=$<BOOL:${HAVE_SYS_ENDIAN}>
18 target_link_libraries(nominatim ${LIBXML2_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${PostgreSQL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})