Proper way to add dependencies to CMake build

Building and customizing Audacity from the source code.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
hugoffg
Posts: 1
Joined: Sat Jun 20, 2020 12:57 pm
Operating System: macOS 10.15 Catalina or later

Proper way to add dependencies to CMake build

Post by hugoffg » Sat Jun 20, 2020 1:49 pm

Hello!

I'd like to add some MIR tools to Audacity and want to add two dependencies (Torch and Essentia) to the CMake build system. What would be the proper way to add libraries to the build? I'm assuming this involves including the library's source in the /lib-src directory, and adding a CMake script in the /cmake-proxies directory, though I'm not sure. I'm fairly new to CMake and could use some pointers on how to extend the current build system.

I'm working on top of the latest release (Audacity 2.4.1).

Thanks!

Post Reply