-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
69 lines (69 loc) · 1.32 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
cmake_minimum_required(VERSION 2.0)
project(spaced_seed)
include_directories(
"$ENV{GOOGLE_TEST}"
"$ENV{GOOGLE_TEST}/include"
"${CMAKE_SOURCE_DIR}/src"
"${CMAKE_SOURCE_DIR}/test"
)
add_library(gtest
$ENV{GOOGLE_TEST}/src/gtest-all.cc
)
add_library(gtest_main
$ENV{GOOGLE_TEST}/src/gtest_main.cc
)
add_executable(
src/spaced_seed
src/spaced_seed.cpp
src/common.h
src/seq_aligner.h
src/dna_seq.h
)
add_executable(
src/visual_align
src/visual_align.cpp
src/common.h
src/seq_aligner.h
src/dna_seq.h
)
add_executable(
src/binary_test
src/binary_test.cpp
src/common.h
src/dna_seq.h
)
add_executable(
src/locator
src/locator.cpp
src/common.h
src/seq_aligner.h
src/dna_seq.h
)
add_executable(
test/dna_test
test/dna_test.cpp
)
add_executable(
test/aligner_test
test/aligner_test.cpp
)
add_executable(
test/ref_test
test/ref_test.cpp
)
target_link_libraries(test/dna_test gtest gtest_main pthread)
target_link_libraries(test/aligner_test gtest gtest_main pthread)
target_link_libraries(test/ref_test gtest gtest_main pthread)
enable_testing()
add_test(
NAME dna_test
COMMAND test/dna_test
)
add_test(
NAME aligner_test
COMMAND test/aligner_test
)
add_test(
NAME ref_test
COMMAND test/ref_test
)