]> git.openstreetmap.org Git - nominatim.git/blob - nominatim/CMakeLists.txt
b391a342d752ca061c46e606a96809c70996a2f4
[nominatim.git] / nominatim / CMakeLists.txt
1 add_executable(nominatim export.c geometry.cpp import.c index.c input.c nominatim.c postgresql.c sprompt.c)
2
3 CHECK_SYMBOL_EXISTS(bswap_32 "byteswap.h" HAVE_BYTESWAP)
4 CHECK_SYMBOL_EXISTS(bswap32 "sys/endian.h" HAVE_SYS_ENDIAN)
5
6 target_compile_definitions(nominatim
7     PRIVATE HAVE_BYTESWAP=$<BOOL:${HAVE_BYTESWAP}>
8     PRIVATE HAVE_SYS_ENDIAN=$<BOOL:${HAVE_SYS_ENDIAN}>
9 )
10
11 target_link_libraries(nominatim ${LIBXML2_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${PostgreSQL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
12