Skip to content

Commit c20e53e

Browse files
committed
Fix tests to use cmake build directory. Also added lzma for htslib
1 parent 14f5eb4 commit c20e53e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/Makefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55

66
CC=gcc
77
CXX=g++
8-
CFLAGS=-Wall -std=c++0x
9-
LINKERS=-lm -lpthread -lhts -lvcflib -lz
10-
INCLUDE=-I../src -I../googletest/googletest/include/ -I../tabixpp/ -I../tabixpp/htslib/ -I ../smithwaterman/ -I ../multichoose/ -I ../filevercmp/ -I ../googletest/googletest/make/
11-
LIB=-L../lib -L../tabixpp/htslib -L../tabixpp/htslib/ -L../googletest/googletest/make/
8+
CFLAGS=-Wall -std=c++0x
9+
LINKERS=-lm -lpthread -lhts -lvcflib -lz
10+
INCLUDE=-I../src -I../googletest/googletest/include/ -I../fastahack -I../tabixpp/ -I../tabixpp/htslib/ -I ../smithwaterman/ -I ../multichoose/ -I ../filevercmp/ -I ../googletest/googletest/make/
11+
LIB=-L../build -L../tabixpp/htslib -L../tabixpp/htslib/ -L../googletest/googletest/make/ -lcurl -llzma -lbz2
1212
LIBGTEST=../googletest/googletest/make/gtest_main.a
13-
LIBVCF=../lib/libvcflib.a
13+
LIBVCF=../build/libvcflib.a
1414
all: run
1515

1616
../googletest/googletest/make/gtest_main.a:
1717
cd ../googletest/googletest/make/ && make
1818
tests/main: ../googletest/googletest/make/gtest_main.a
19-
$(CXX) $(CFLAGS) $(INCLUDE) $(LIB) $(LINKERS) tests/mainTest.cpp ../tabixpp/tabix.cpp ../tabixpp/htslib/libhts.a $(LIBVCF) $(LIBGTEST) -o tests/main
19+
$(CXX) $(CFLAGS) $(INCLUDE) $(LIB) $(LINKERS) tests/mainTest.cpp ../tabixpp/tabix.cpp ../tabixpp/htslib/libhts.a $(LIBVCF) $(LIBGTEST) -o tests/main
2020
run: tests/main
2121
./tests/main
2222
clean:

0 commit comments

Comments
 (0)