project(NAME CXX)
cmake_minimum_required(VERSION 2.6)

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

# 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.hpp" DESTINATION include/NAME)
