• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1if(MSVC)
2    return()
3endif()
4
5set(CMAKE_REQUIRED_LIBRARIES rt)
6check_function_exists(clock_gettime HAVE_CLOCK_GETTIME)
7
8if(APPLE)
9    add_definitions(-DFLAC__SYS_DARWIN)
10endif()
11
12add_executable(benchmark_residual benchmark_residual.c util.c)
13target_include_directories(benchmark_residual PRIVATE
14    "$<TARGET_PROPERTY:FLAC,SOURCE_DIR>/include")
15target_link_libraries(benchmark_residual
16    FLAC
17    $<$<BOOL:${HAVE_CLOCK_GETTIME}>:rt>)
18