1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 22:33:02 +01:00

Adds full -D support to toxics versioning, includes the commit number

This commit is contained in:
Sean Qureshi 2013-08-07 18:52:11 -07:00
parent 8e881ca50f
commit 94dab85275

View File

@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 2.6.0)
project(toxic C)
execute_process(COMMAND git rev-list HEAD --count OUTPUT_VARIABLE COMMIT)
SET(GCC_COVERAGE_COMPILE_FLAGS '-DTOXICVER="0.1.1_r${COMMIT}"')
add_definitions(${GCC_COVERAGE_COMPILE_FLAGS})
set(exe_name toxic)
add_executable(${exe_name}