Commit ee686c7d authored by jehan's avatar jehan

fix cmake build script for unit test

parent 1e684cd9
......@@ -105,3 +105,7 @@ target_link_libraries(computeNoiseExcitationTest ${BCG729_LIBRARY})
add_executable(encoderVADTest src/encoderVADTest.c ${UTIL_SRC})
target_link_libraries(encoderVADTest ${BCG729_LIBRARY})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/testCampaign.cmake DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ )
file(RENAME ${CMAKE_CURRENT_BINARY_DIR}/testCampaign ${CMAKE_CURRENT_BINARY_DIR}/testCampaign )
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/testCampaignAll.cmake ${CMAKE_CURRENT_BINARY_DIR}/testCampaignAll)
......@@ -29,4 +29,4 @@ if [ ! -d "patterns" ]; then
fi
# run all the tests
./testCampaign all
@CMAKE_CURRENT_BINARY_DIR@/testCampaign all
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment