diff options
| author | Stephen Sinclair <radarsat1@gmail.com> | 2018-07-14 18:46:12 -0400 |
|---|---|---|
| committer | Stephen Sinclair <radarsat1@gmail.com> | 2018-07-14 18:46:12 -0400 |
| commit | 9802c1285962f4bb187ee280a21908dc134083d0 (patch) | |
| tree | 5763ff9428b5f974a88313dfb803e13bbcfd19dc /tests | |
| parent | adefaebdbcc1c3137b1c9ce8d995ef25564c7fc8 (diff) | |
cmake: make CMakeLists.txt more similar to RtMidi's
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/CMakeLists.txt | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0fb028f..5c08f6d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -3,23 +3,25 @@ if (WIN32) include_directories(../include) endif (WIN32) +list(GET LIB_TARGETS 0 LIBRTAUDIO) + add_executable(audioprobe audioprobe.cpp) -target_link_libraries(audioprobe rtaudio_static ${LINKLIBS}) +target_link_libraries(audioprobe ${LIBRTAUDIO} ${LINKLIBS}) add_executable(playsaw playsaw.cpp) -target_link_libraries(playsaw rtaudio_static ${LINKLIBS}) +target_link_libraries(playsaw ${LIBRTAUDIO} ${LINKLIBS}) add_executable(playraw playraw.cpp) -target_link_libraries(playraw rtaudio_static ${LINKLIBS}) +target_link_libraries(playraw ${LIBRTAUDIO} ${LINKLIBS}) add_executable(record record.cpp) -target_link_libraries(record rtaudio_static ${LINKLIBS}) +target_link_libraries(record ${LIBRTAUDIO} ${LINKLIBS}) add_executable(duplex duplex.cpp) -target_link_libraries(duplex rtaudio_static ${LINKLIBS}) +target_link_libraries(duplex ${LIBRTAUDIO} ${LINKLIBS}) add_executable(testall testall.cpp) -target_link_libraries(testall rtaudio_static ${LINKLIBS}) +target_link_libraries(testall ${LIBRTAUDIO} ${LINKLIBS}) add_executable(teststops teststops.cpp) -target_link_libraries(teststops rtaudio_static ${LINKLIBS}) +target_link_libraries(teststops ${LIBRTAUDIO} ${LINKLIBS}) |
