diff options
author | Adrian Kummerländer | 2014-02-05 16:57:49 +0100 |
---|---|---|
committer | Adrian Kummerländer | 2014-02-05 16:57:49 +0100 |
commit | 6ad51b897a223e95ee852321b3c5c0ec23b1ee64 (patch) | |
tree | 44235b5d93efd5542f01d5a34f73c5c399b7c04f /CMakeLists.txt | |
parent | 85b17dca6e62fc43517506c281f16dd91f53f0ae (diff) | |
download | Trie-6ad51b897a223e95ee852321b3c5c0ec23b1ee64.tar Trie-6ad51b897a223e95ee852321b3c5c0ec23b1ee64.tar.gz Trie-6ad51b897a223e95ee852321b3c5c0ec23b1ee64.tar.bz2 Trie-6ad51b897a223e95ee852321b3c5c0ec23b1ee64.tar.lz Trie-6ad51b897a223e95ee852321b3c5c0ec23b1ee64.tar.xz Trie-6ad51b897a223e95ee852321b3c5c0ec23b1ee64.tar.zst Trie-6ad51b897a223e95ee852321b3c5c0ec23b1ee64.zip |
Added CMake build instructions and test cases
* Test cases are based on GoogleTest and are executed automatically after each compile
* Updated README.md accordingly
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 26 |
1 files changed, 26 insertions, 0 deletions
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 +) |