tools: build with CMake

Building with CMake makes it a lot easier to bring in other libraries
such as gflags and abseil.

Signed-off-by: Rick Altherr <[email protected]>
Signed-off-by: Tim 'mithro' Ansell <[email protected]>
This commit is contained in:
Rick Altherr
2017-12-20 22:46:39 +01:00
committed by Tim 'mithro' Ansell
parent c815d4b1a5
commit fedf33b5ce
4 changed files with 10 additions and 18 deletions
+2
View File
@@ -0,0 +1,2 @@
add_executable(bitread bitread.cc)
add_executable(segmatch segmatch.cc)
-17
View File
@@ -1,17 +0,0 @@
# CXXFLAGS = -Wall -Wextra -O0 -ggdb
CXXFLAGS = -Wall -Wextra -O3
all: bitread segmatch
bitread: bitread.cc
clang $(CXXFLAGS) -std=c++11 -o $@ $< -lstdc++
segmatch: segmatch.cc
clang $(CXXFLAGS) -std=c++11 -o $@ $< -lstdc++
clean:
rm -f bitread segmatch
.PHONY: all clean