CMakeLists.txt 1.76 KB
Newer Older
1 2
cmake_minimum_required(VERSION 3.9)

3 4
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

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

7
project (cobitools3 LANGUAGES C)
8

9
set(CMAKE_BUILD_TYPE Release)
10 11

include_directories(${CMAKE_CURRENT_SOURCE_DIR})
12

13 14
file(GLOB_RECURSE CSRC "*.c")

15 16
add_library(cobitools3 SHARED   obisig.c
                                obierrno.c
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
								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
65
								array_indexer.c)
66 67 68 69 70 71

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