Making stats compile

This commit is contained in:
Timofey 2016-09-29 15:47:03 +03:00
parent 569ea6f284
commit 7ca99fa056
2 changed files with 56 additions and 0 deletions

View file

@ -130,4 +130,5 @@ add_subdirectory(coding)
add_subdirectory(geometry)
add_subdirectory(platform)
add_subdirectory(3party/opening_hours)
add_subdirectory(stats)
#add_subdirectory(storage)

55
stats/CMakeLists.txt Normal file
View file

@ -0,0 +1,55 @@
include_directories(${OMIM_DIR} ${OMIM_DIR}/3party/Alohalytics/src)
set(
SRC
${OMIM_DIR}/3party/Alohalytics/src/cpp/alohalytics.cc
${OMIM_DIR}/3party/Alohalytics/src/alohalytics.h
${OMIM_DIR}/3party/Alohalytics/src/event_base.h
${OMIM_DIR}/3party/Alohalytics/src/file_manager.h
${OMIM_DIR}/3party/Alohalytics/src/http_client.h
${OMIM_DIR}/3party/Alohalytics/src/logger.h
)
if (${PL_WIN})
set(
SRC
${SRC}
${OMIM_DIR}/3party/Alohalytics/src/windows/file_manager_windows_impl.cc
)
else()
set(
SRC
${SRC}
${OMIM_DIR}/3party/Alohalytics/src/posix/file_manager_posix_impl.cc
)
endif()
if (${PL_IPHONE} OR ${PL_MAC})
set(
SRC
${SRC}
${OMIM_DIR}/3party/Alohalytics/src/alohalytics_objc.h
${OMIM_DIR}/3party/Alohalytics/src/apple/http_client_apple.mm
${OMIM_DIR}/3party/Alohalytics/src/apple/alohalytics_objc.mm
)
elseif(${PL_LINUX} OR ${PL_WIN})
set(
SRC
${SRC}
${OMIM_DIR}/3party/Alohalytics/src/posix/http_client_curl.cc
)
elseif(${PL_ANDROID})
set(
SRC
${SRC}
${OMIM_DIR}/3party/Alohalytics/src/android/jni/jni_alohalytics.cc
)
endif()
add_library(stats_client ${SRC})
if (${PL_IPHONE} OR ${PL_MAC})
target_compile_options(stats_client PUBLIC "-fobjc-arc")
endif()