# The Flutter tooling requires that developers have CMake 3.10 or later
# installed. You should not increase this version, as doing so will cause
# the plugin to fail to compile for some customers of the plugin.
cmake_minimum_required(VERSION 3.10)

project(native_clock_library VERSION 0.0.1 LANGUAGES C)

add_library(native_clock SHARED
  "native_clock.c"
)

set_target_properties(native_clock PROPERTIES
  PUBLIC_HEADER native_clock.h
  OUTPUT_NAME "native_clock"
)

target_compile_definitions(native_clock PUBLIC DART_SHARED_LIB)
target_link_options(native_clock PRIVATE "-Wl,-z,max-page-size=16384")