diff options
Diffstat (limited to 'testing/toxic/CMakeLists.txt')
-rw-r--r-- | testing/toxic/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/toxic/CMakeLists.txt b/testing/toxic/CMakeLists.txt index f30d8e9e..38f02dc6 100644 --- a/testing/toxic/CMakeLists.txt +++ b/testing/toxic/CMakeLists.txt | |||
@@ -1,6 +1,9 @@ | |||
1 | cmake_minimum_required(VERSION 2.6.0) | 1 | cmake_minimum_required(VERSION 2.6.0) |
2 | project(toxic C) | 2 | project(toxic C) |
3 | 3 | ||
4 | execute_process(COMMAND git rev-list HEAD --count OUTPUT_VARIABLE COMMIT) | ||
5 | SET(GCC_COVERAGE_COMPILE_FLAGS '-DTOXICVER="0.1.1_r${COMMIT}"') | ||
6 | add_definitions(${GCC_COVERAGE_COMPILE_FLAGS}) | ||
4 | set(exe_name toxic) | 7 | set(exe_name toxic) |
5 | 8 | ||
6 | add_executable(${exe_name} | 9 | add_executable(${exe_name} |