Browse Source

Build test programs.

tags/4.1.0
Berkus 11 years ago
parent
commit
704da88113
2 changed files with 28 additions and 0 deletions
  1. +3
    -0
      CMakeLists.txt
  2. +25
    -0
      tests/CMakeLists.txt

+ 3
- 0
CMakeLists.txt View File

@@ -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)


+ 25
- 0
tests/CMakeLists.txt View File

@@ -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})

Loading…
Cancel
Save