Skip to content

Commit

Permalink
adding CMakeLists.txt files
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLangmead committed May 5, 2020
1 parent 2f00490 commit 60b2c3d
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
26 changes: 26 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 2.8)

project(kraken2)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_compile_options(-Wall)
add_definitions(-DLINEAR_PROBING)

set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")

include(FindOpenMP)
if(OPENMP_FOUND)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
else(OPENMP_FOUND)
message("ERROR: OpenMP could not be found.")
endif(OPENMP_FOUND)

add_subdirectory(src)
42 changes: 42 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
add_executable(build_db
build_db.cc
mmap_file.cc
compact_hash.cc
taxonomy.cc
seqreader.cc
mmscanner.cc
omp_hack.cc
utilities.cc)

add_executable(classify
classify.cc
reports.cc
mmap_file.cc
compact_hash.cc
taxonomy.cc
seqreader.cc
mmscanner.cc
omp_hack.cc
aa_translate.cc
utilities.cc)

add_executable(estimate_capacity
estimate_capacity.cc
seqreader.cc
mmscanner.cc
omp_hack.cc
utilities.cc)

add_executable(dump_table
dump_table.cc
mmap_file.cc
compact_hash.cc
omp_hack.cc
taxonomy.cc
reports.cc)

add_executable(lookup_accession_numbers
lookup_accession_numbers.cc
mmap_file.cc
omp_hack.cc
utilities.cc)

0 comments on commit 60b2c3d

Please sign in to comment.