CMakeLists.txt 1.75 KB
Newer Older
1 2 3 4
cmake_minimum_required(VERSION 3.9)

SET(CMAKE_C_COMPILER gcc)

5 6
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

7 8
SET(PYTHONLIB "po" CACHE STRING "Location of the python site-package directory")

9
project (cobitools3 LANGUAGES C)
10

11
set(CMAKE_BUILD_TYPE Release)
12 13

include_directories(${CMAKE_CURRENT_SOURCE_DIR})
14

15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
file(GLOB_RECURSE CSRC "*.c")

add_library(cobitools3 SHARED   obierrno.c
								obidms_taxonomy.c
								obiblob_indexer.c
								obi_lcs.c
								obidmscolumn_str.c
								bloom.c
								build_reference_db.c
								obidmscolumn_array.c
								obidmscolumn_idx.c
								obidmscolumn_bool.c
								libjson/json_utils.c
								libjson/cJSON.c
								obidmscolumn_blob.c
								dna_seq_indexer.c
								obi_ecotag.c
								encode.c
								obiavl.c
								sse_banded_LCS_alignment.c
								kmer_similarity.c
								obidmscolumn_qual.c
								obi_clean.c
								utils.c
								uint8_indexer.c
								murmurhash2.c
								obidmscolumn_char.c
								obiview.c
								obidmscolumn_int.c
								linked_list.c
								obiblob.c
								hashtable.c
								obidmscolumn.c
								char_str_indexer.c
								obidmscolumn_float.c
								upperband.c
								crc64.c
								obidmscolumn_seq.c
								obilittlebigman.c
								obidmscolumndir.c
								obidms.c
								obi_ecopcr.c
								libecoPCR/libthermo/nnparams.c
								libecoPCR/ecoapat.c
								libecoPCR/libapat/libstki.c
								libecoPCR/libapat/apat_search.c
								libecoPCR/libapat/apat_parse.c
								libecoPCR/ecodna.c
								libecoPCR/ecoMalloc.c
								libecoPCR/ecoError.c
								obitypes.c
66
								array_indexer.c)
67 68 69 70 71 72

find_package(OpenMP)
if(OpenMP_C_FOUND)
    target_link_libraries(cobitools3 PUBLIC OpenMP::OpenMP_C)
endif()
					
73 74
install(TARGETS cobitools3 DESTINATION ${PYTHONLIB})