find_package (Boost 1.47)

set (skiplist_DEFINITIONS)
set (skiplist_INCLUDE_DIRS)
set (skiplist_LIBRARIES)
set (skiplist_LIBRARY)

include (CheckCXX0X)

check_has_cpp0x (HAVE_CXX0X)

if (HAVE_CXX0X)
  list (APPEND skiplist_DEFINITIONS -DHAVE_CXX0X)
endif (HAVE_CXX0X)

if (Boost_FOUND)
  list (APPEND skiplist_DEFINITIONS -DHAVE_BOOST)
  list (APPEND skiplist_INCLUDE_DIRS ${Boost_INCLUDE_DIRS})
endif (Boost_FOUND)

get_filename_component (_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component (skiplist_INCLUDE_DIR ${_DIR} ABSOLUTE)
