-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CMake buildfile. #3
Conversation
Hi Berkus, I don’t know that much about CMake … I’ve never used it. What does one need to use it? The file you submitted is pretty minimal. I guess that only compiles a library (not the test files) and it currently defaults to Linux: Pulse Audio; Windows: DirectSound; Apple: CoreAudio? How could it be made to easily allow a user to specify the OS / API they want to compile? Regards, —gary On Feb 2, 2014, at 7:25 PM, Berkus Decker notifications@github.com wrote:
|
Hi Gary, the included file is indeed minimal, I'm using it to build inside my build of MettaNode, which uses RtAudio for sound i/o.
it will generate whatever type of build system is default on your platform (Makefile on Linux, VS project on Windows, Xcode or Makefiles on OSX). You can force particular type of output using -G option (e.g. -G "Ninja"). I can add some options to allow manual specification of APIs to build in the next patch, but CMake is powerful enough to detect most of the supported stuff automatically (except for perhaps ASIO drivers). I will submit next patch soon. |
These commits add
|
I haven't tested on some platforms I don't have (Windows and NetBSD), the rest should work ok. If you have some sort of CI, would be nice to run it through a test. |
Ping? |
Hi Berkus, If you are wondering whether I plan to include the CMake buildfile, the answer is that it may take some time before I can consider it. As well, it isn’t complete because it doesn’t build the test programs. My OS-X system doesn’t have cmake installed, so I can’t do a quick test and it could be a month or more before I have time to do careful tests on other OSes. In general, we already have a make system working and my goal with these software projects is to minimize my support time, so adding yet another component that needs support over time is not really helping. —gary On Feb 7, 2014, at 2:17 AM, Berkus Decker notifications@github.com wrote:
|
No pressure. |
I checked it on Windows and it works fine for VS. I didn't have luck with MinGW but that may be a problem in my setup. |
Very simple CMakeLists.txt to allow building librtaudio.a with cmake.