if(NOT CMAKE_C_STANDARD)
  set(CMAKE_C_STANDARD 11)
endif(NOT CMAKE_C_STANDARD)
if(NOT CMAKE_CXX_STANDARD)
  set(CMAKE_CXX_STANDARD 11)
endif(NOT CMAKE_CXX_STANDARD)
if(NOT CMAKE_C_STANDARD_REQUIRED)
  set(CMAKE_C_STANDARD_REQUIRED ON)
endif(NOT CMAKE_C_STANDARD_REQUIRED)
if(NOT CMAKE_CXX_STANDARD_REQUIRED)
  set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif(NOT CMAKE_CXX_STANDARD_REQUIRED)

set(CMAKE_C_OUTPUT_EXTENSION_REPLACE ON)
set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE ON)
set(CMAKE_ASM_OUTPUT_EXTENSION_REPLACE ON)

include_directories(${CMAKE_CURRENT_LIST_DIR})
aux_source_directory(${CMAKE_CURRENT_LIST_DIR} SOURCE)
list(APPEND SOURCE_KLIB ${SOURCE})
