diff options
author | Chris Robinson <[email protected]> | 2019-01-21 10:23:17 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-01-21 10:23:17 -0800 |
commit | 1565d7e2764141f40b9f8b2713311ca3394271fd (patch) | |
tree | 8485d4c3a1988aa192273b824e14b28cec5282e4 /CMakeLists.txt | |
parent | c239ae44f827ca3a5bc877b9b19da37e27a0beb7 (diff) |
Add a sofa-info utility to check sofa files
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cdbf4855..0dc01a7b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1526,6 +1526,16 @@ IF(ALSOFT_UTILS) TARGET_LINK_LIBRARIES(makehrtf PRIVATE ${LINKER_FLAGS} m) ENDIF() + find_package(MySOFA) + if(MYSOFA_FOUND) + set(SOFAINFO_SRCS utils/sofa-info.cpp) + add_executable(sofa-info ${SOFAINFO_SRCS}) + target_compile_definitions(sofa-info PRIVATE ${CPP_DEFS}) + target_include_directories(sofa-info PRIVATE ${MYSOFA_INCLUDE_DIRS}) + target_compile_options(sofa-info PRIVATE ${C_FLAGS}) + target_link_libraries(sofa-info PRIVATE ${LINKER_FLAGS} ${MYSOFA_LIBRARIES}) + endif() + IF(ALSOFT_INSTALL) INSTALL(TARGETS openal-info makehrtf RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |