module for adding preprocessor definitions; fixes #103

This commit is contained in:
Radovan Bast 2015-09-03 09:19:00 +02:00
parent c41c10bf9c
commit e20dc5d862

16
modules/definitions.cmake Normal file
View File

@ -0,0 +1,16 @@
#.rst:
#
# Add preprocessor definitions.
#
# Variables used::
#
# PREPROCESSOR_DEFINITIONS
#
# autocmake.cfg configuration::
#
# docopt: --add-definitions=<STRING> Add preprocesor definitions [default: ''].
# define: '-DPREPROCESSOR_DEFINITIONS="%s"' % arguments['--add-definitions']
if(NOT "${PREPROCESSOR_DEFINITIONS}" STREQUAL "")
add_definitions(${PREPROCESSOR_DEFINITIONS})
endif()