diff options
| author | Berkus <berkus@gmail.com> | 2014-02-04 14:58:26 +0200 |
|---|---|---|
| committer | Berkus <berkus@gmail.com> | 2014-02-04 14:58:26 +0200 |
| commit | 704da88113a15d4eafdeb3e33714531adcd249b0 (patch) | |
| tree | ad0ea100f9dcf67d8ec198aefd9cf2223209fe16 | |
| parent | 184ac3fff27d3b9f137c64f2b1a35b6619580580 (diff) | |
Build test programs.
| -rw-r--r-- | CMakeLists.txt | 3 | ||||
| -rw-r--r-- | tests/CMakeLists.txt | 25 |
2 files changed, 28 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 273d5c7..365ce75 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,4 +114,7 @@ add_library(rtaudio_static STATIC ${rtaudio_SOURCES}) target_link_libraries(rtaudio ${LINKLIBS}) +if (BUILD_TESTING) + add_subdirectory(tests) +endif (BUILD_TESTING) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..0fb028f --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,25 @@ +include_directories(..) +if (WIN32) + include_directories(../include) +endif (WIN32) + +add_executable(audioprobe audioprobe.cpp) +target_link_libraries(audioprobe rtaudio_static ${LINKLIBS}) + +add_executable(playsaw playsaw.cpp) +target_link_libraries(playsaw rtaudio_static ${LINKLIBS}) + +add_executable(playraw playraw.cpp) +target_link_libraries(playraw rtaudio_static ${LINKLIBS}) + +add_executable(record record.cpp) +target_link_libraries(record rtaudio_static ${LINKLIBS}) + +add_executable(duplex duplex.cpp) +target_link_libraries(duplex rtaudio_static ${LINKLIBS}) + +add_executable(testall testall.cpp) +target_link_libraries(testall rtaudio_static ${LINKLIBS}) + +add_executable(teststops teststops.cpp) +target_link_libraries(teststops rtaudio_static ${LINKLIBS}) |
