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

@ -112,6 +112,7 @@ endif()
option(USE_EXPERIMENTAL_LANG_VERSIONS "Build with -std=c++0x" OFF)
option(BUILD_SHARED "Build with shared libraries" OFF)
option(WITH_BENCHMARK "Build with benchmark code" OFF)
option(WITH_MYFILE_MMAP "Build using memory mapped file" ON)
option(WITH_LTO "Build with link-time optimizations" OFF)
option(WITH_SAN "Build with run-time sanitizer" OFF)

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}