-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
72 lines (63 loc) · 1.29 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
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
66
67
68
69
70
71
72
cmake_minimum_required(VERSION 2.6)
project(bwa C)
find_package(Threads)
find_package(ZLIB)
set(CMAKE_C_FLAGS "-g -Wall -O2 -Wno-unused-function")
set(BWA_HEADERS
libbwa.h)
set(BWA_SOURCES
libbwa.c
libbwa_index.c
libbwa_aln.c
libbwa_samse.c
libbwa_sampe.c
libbwa_sw.c
libbwa_mem.c
libbwa_fastmap.c
libbwa_fa2pac.c
libbwa_pac2bwt.c
libbwa_bwtgen.c
utils.c
kthread.c
kstring.c
ksw.c
bwt.c
bntseq.c
bwa.c
bwamem.c
bwamem_pair.c
bwamem_extra.c
malloc_wrap.c
QSufSort.c
bwt_gen.c
bwase.c
bwaseqio.c
bwtgap.c
bwtaln.c
bamlite.c
is.c
bwtindex.c
bwape.c
kopen.c
pemerge.c
bwtsw2_core.c
bwtsw2_main.c
bwtsw2_aux.c
bwt_lite.c
bwtsw2_chain.c
fastmap.c
bwtsw2_pair.c)
include_directories(${PROJECT_SOURCE_DIR})
set(SERIAL "0.7.10-r789")
set(SOSERIAL "0.7.10")
add_library(bwa SHARED ${BWA_SOURCES})
set_target_properties(bwa PROPERTIES VERSION ${SERIAL} SOVERSION ${SOSERIAL} MACOSX_RPATH 1)
target_link_libraries(bwa ${CMAKE_THREAD_LIBS_INIT} m z)
if(BUILD_TESTING)
enable_testing()
add_executable(bwa_test test.c)
add_test(bwa_test bwa_test)
target_link_libraries(bwa_test bwa ${CMAKE_THREAD_LIBS_INIT} m z cunit)
endif(BUILD_TESTING)
install(TARGETS bwa LIBRARY DESTINATION lib)
install(FILES ${BWA_HEADERS} DESTINATION include)