Open UnaNancyOwen opened 4 years ago
I was finished fixes this pull-request. It is work correctly on Windows and Linux (Ubunts 18.04 LTS). Perhaps, It will also work on Mac.
t_sugiura0204@ubuntu:~/libsoundio/build$ ./unit_tests
testing os_get_time...OK
testing create output stream...OK
testing mirrored memory...OK
testing soundio_device_nearest_sample_rate...OK
testing ring buffer basic...OK
testing ring buffer threaded...OK
@andrewrk Please review this pull-request! Thanks,
@andrewrk I was searching for exactly this feature today. Would you mind taking a look at this PR and consider merging it? It would be tremendously useful for consumers of the library.
This pull-request will change to install libsoundio-config.cmake. It makes possible to users to find libraries using find_package(libsoundio) in CMakeLists.txt.
I have confirmed that this change works correctly on Windows. unit_tests are all OK (success).
However, it has not been tested on Linux and Mac yet. It is necessary to test on Linux and Mac, because CMakeLists.txt has changed significantly. Please try test on Linux and Mac.
(This pull-request change CMake option to
BUILD_SHARED_LIBS
fromBUILD_DYNAMIC_LIBS
.BUILD_STATIC_LIBS
option has been discontinued along with that. If you build static link library, Please setBUILD_SHARED_LIBS
option to OFF.)