cmake switch -WITH_BENCHMARK enables BENCHFUN macro for rtengine

This commit is contained in:
heckflosse
2017-12-25 01:32:29 +01:00
parent 1079f863b6
commit 11ad1dace8
2 changed files with 4 additions and 0 deletions

View File

@@ -122,6 +122,9 @@ if(LENSFUN_HAS_LOAD_DIRECTORY)
set_source_files_properties(rtlensfun.cc PROPERTIES COMPILE_DEFINITIONS RT_LENSFUN_HAS_LOAD_DIRECTORY)
endif()
if(WITH_BENCHMARK)
add_definitions(-DBENCHMARK)
endif()
if(NOT WITH_SYSTEM_KLT)
set(RTENGINESOURCEFILES ${RTENGINESOURCEFILES}