cmake_minimum_required(VERSION 3.10)
project(statistics LANGUAGES CXX)

# Set C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Add the source files
add_library(
    statistics
    SHARED
    native/statistics/health_analytics.cpp
)

# Include directories
target_include_directories(
    statistics
    PRIVATE
    native/statistics
)

# Platform-specific configuration
if(WIN32)
    # Windows-specific settings
    set_target_properties(
        statistics
        PROPERTIES
        RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/windows"
    )
elseif(APPLE)
    # macOS-specific settings
    set_target_properties(
        statistics
        PROPERTIES
        LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/macos"
    )
else()
    # Linux-specific settings
    set_target_properties(
        statistics
        PROPERTIES
        LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/linux"
    )
endif()