# ==========================
# samtools CMakeLists.txt
#
# top-level
# ==========================

# set project name
project( samtools )

include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${EXT_DIR}/include)

#add_library( samTools STATIC ${BamToolsAPISources} )


file(GLOB sources "[a-zA-Z]*.c" "bcftools/[a-zA-Z]*.c" "misc/[a-z][A-Z]*.c")
add_definitions(-DBGZF_CACHE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1)
#add_subdirectory (bcftools)
add_subdirectory (misc)


add_library(samtools 
           ${sources})

target_link_libraries( samtools ${ZLIB_LIBRARIES})


# list subdirectories to build in
