From 6ad51b897a223e95ee852321b3c5c0ec23b1ee64 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Wed, 5 Feb 2014 16:57:49 +0100 Subject: Added CMake build instructions and test cases * Test cases are based on GoogleTest and are executed automatically after each compile * Updated README.md accordingly --- CMakeLists.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..342dbc8 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,26 @@ +cmake_minimum_required(VERSION 2.8) +project(Trie) + +set( + CMAKE_CXX_FLAGS + "-std=c++11 -W -Wall -Wextra -Winline -pedantic" +) + +include_directories( + src/ +) + +add_executable( + test + test.cc +) + +target_link_libraries( + test + gtest +) + +add_custom_command( + TARGET test + POST_BUILD COMMAND ./test +) -- cgit v1.2.3