project(NAME C)
cmake_minimum_required(VERSION 2.6)

# rules to create a shared library
add_library(NAME SHARED NAME.c)

# load regression tests
enable_testing()
add_subdirectory(tests)

# rules to install the library and the header file
install(TARGETS NAME LIBRARY DESTINATION lib)
install(FILES "${NAME_SOURCE_DIR}/NAME.h" DESTINATION include/NAME)
