configure_file("${CMAKE_CURRENT_SOURCE_DIR}/config.hh.in"
               "${CMAKE_CURRENT_BINARY_DIR}/config.hh")

install( FILES "${CMAKE_CURRENT_BINARY_DIR}/config.hh"
         DESTINATION "${AWALI_INST_INCLUDE_PATH}/dyn")

add_subdirectory(tests EXCLUDE_FROM_ALL)

add_custom_target(cleanlib 
  COMMAND rm -rf "${AWALI_OTF_LIB_PATH}"
  DEPENDS cleandep
  COMMENT "Removing local compiled module (${AWALI_OTF_LIB_PATH})"
)
add_custom_target(cleandep 
  COMMAND rm -rf "${AWALI_OTF_TMP_PATH}"
  COMMENT "Removing autogenerated module dependencies (${AWALI_OTF_TMP_PATH})"
)
