include_directories(${OMIM_ROOT} ${OMIM_ROOT}/3party/Alohalytics/src) set( SRC ${OMIM_ROOT}/3party/Alohalytics/src/cpp/alohalytics.cc ${OMIM_ROOT}/3party/Alohalytics/src/alohalytics.h ${OMIM_ROOT}/3party/Alohalytics/src/event_base.h ${OMIM_ROOT}/3party/Alohalytics/src/file_manager.h ${OMIM_ROOT}/3party/Alohalytics/src/http_client.h ${OMIM_ROOT}/3party/Alohalytics/src/logger.h ) if (${PLATFORM_WIN}) set( SRC ${SRC} ${OMIM_ROOT}/3party/Alohalytics/src/windows/file_manager_windows_impl.cc ) else() set( SRC ${SRC} ${OMIM_ROOT}/3party/Alohalytics/src/posix/file_manager_posix_impl.cc ) endif() if (${PLATFORM_IPHONE} OR ${PLATFORM_MAC}) set( SRC ${SRC} ${OMIM_ROOT}/3party/Alohalytics/src/alohalytics_objc.h ${OMIM_ROOT}/3party/Alohalytics/src/apple/http_client_apple.mm ${OMIM_ROOT}/3party/Alohalytics/src/apple/alohalytics_objc.mm ) elseif(${PLATFORM_LINUX} OR ${PLATFORM_WIN}) set( SRC ${SRC} ${OMIM_ROOT}/3party/Alohalytics/src/posix/http_client_curl.cc ) elseif(${PLATFORM_ANDROID}) set( SRC ${SRC} ${OMIM_ROOT}/3party/Alohalytics/src/android/jni/jni_alohalytics.cc ) endif() add_library(stats_client ${SRC}) if (${PLATFORM_IPHONE} OR ${PLATFORM_MAC}) target_compile_options(stats_client PUBLIC "-fobjc-arc") endif()