summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Zini <enrico@enricozini.org>2015-09-10 15:27:19 +0200
committerEnrico Zini <enrico@enricozini.org>2015-09-10 15:27:19 +0200
commit0a20975c244064e41f9b90ae59fe07a2d7011924 (patch)
tree182fc3e6094e247de62f0331ab1b1b270fa0a323
parent40b6b11a49e9bd6e13261ed1471371cd497d4baf (diff)
downloadlibept-0a20975c244064e41f9b90ae59fe07a2d7011924.tar.gz
Build ept-cat
-rw-r--r--tools/CMakeLists.txt1
-rw-r--r--tools/ept-cat.cpp6
2 files changed, 4 insertions, 3 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index 33a4a6f..d3210f1 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -1,5 +1,6 @@
include_directories( ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}
${TAGCOLL_INCLUDE_DIRS} ${WIBBLE_INCLUDE_DIRS} )
+add_definitions( --std=c++11 )
link_libraries( ept )
add_executable( ept-cat ept-cat.cpp )
diff --git a/tools/ept-cat.cpp b/tools/ept-cat.cpp
index d5af2f6..df68682 100644
--- a/tools/ept-cat.cpp
+++ b/tools/ept-cat.cpp
@@ -1,5 +1,5 @@
#include <ept/apt/apt.h>
-#include <ept/apt/apt.h>
+#include <iostream>
int summary = 0;
@@ -10,7 +10,7 @@ int main( int argc, char **argv ) {
Apt db;
for (Apt::record_iterator i = db.recordBegin(); i != db.recordEnd(); ++i)
- cout << *i << endl;
-
+ cout << *i << endl;
+
return 0;
}