You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
438 B
18 lines
438 B
4 months ago
|
if(MSVC)
|
||
|
return()
|
||
|
endif()
|
||
|
|
||
|
set(CMAKE_REQUIRED_LIBRARIES rt)
|
||
|
check_function_exists(clock_gettime HAVE_CLOCK_GETTIME)
|
||
|
|
||
|
if(APPLE)
|
||
|
add_definitions(-DFLAC__SYS_DARWIN)
|
||
|
endif()
|
||
|
|
||
|
add_executable(benchmark_residual benchmark_residual.c util.c)
|
||
|
target_include_directories(benchmark_residual PRIVATE
|
||
|
"$<TARGET_PROPERTY:FLAC,SOURCE_DIR>/include")
|
||
|
target_link_libraries(benchmark_residual
|
||
|
FLAC
|
||
|
$<$<BOOL:${HAVE_CLOCK_GETTIME}>:rt>)
|