mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 04:20:30 +00:00
added libraries: opus flac libsndfile updated: libvorbis libogg openal - Everything works as expected for now. Bare in mind libsndfile needed the check for whether or not it could find the xiph libraries removed in order for this to work.
17 lines
438 B
CMake
17 lines
438 B
CMake
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>)
|