Cmake: add CONFFILES define like available in autotools build system

This commit is contained in:
Jiapeng Li 2013-12-08 14:09:50 +01:00 committed by Romuald Conty
parent a7fc1bddaf
commit 0ee6dcad4b

View file

@ -49,6 +49,11 @@ ELSE(LIBNFC_DEBUG_MODE)
SET(WIN32_MODE "release")
ENDIF(LIBNFC_DEBUG_MODE)
SET(LIBNFC_CONFFILES_MODE ON CACHE BOOL "Enable configuration files")
IF(LIBNFC_CONFFILES_MODE)
ADD_DEFINITIONS(-DCONFFILES)
ENDIF(LIBNFC_CONFFILES_MODE)
# Doxygen
SET(builddir "${CMAKE_BINARY_DIR}")
SET(top_srcdir "${CMAKE_SOURCE_DIR}")