set (counters_example_sources
    example_provider.c
)

set (CMAKE_C_STANDARD 99)
set (CMAKE_CXX_STANDARD 11)

set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wstrict-prototypes")

add_library (counters_example_provider SHARED ${counters_example_sources})
target_link_libraries (counters_example_provider clx_counters clx_data)
install (TARGETS counters_example_provider COMPONENT collectx LIBRARY DESTINATION examples/clx_plugin/example_counter_provider)

if(WITH_LINT)
    check_coding_style (counters_example_provider ${counters_example_sources})
endif()
