Skip to content

Commit a6c420b

Browse files
committed
mdct ut added to CMake build
1 parent c0a41cd commit a6c420b

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
2+
3+
add_subdirectory(3rd/gtest-1.7.0)
4+
add_subdirectory(src)
5+
add_subdirectory(test)
6+

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,21 @@ You need C++11 compiler.
66
cmake > 2.8
77
libsndfiles
88

9+
binary:
10+
911
`cd src`
1012
`mkdir build`
1113
`cd build`
1214
`cmake ../`
1315
`make`
1416

17+
18+
binary and tests:
19+
20+
`cd test`
21+
`cmake ../`
22+
`make`
23+
1524
Usage:
1625
You can use --help option to get help
1726

test/CMakeLists.txt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
include_directories(${gtest_SOURCE_DIR}/include)
2+
3+
set(mdct_test_sources
4+
../src/mdct/mdct_ut.cpp
5+
)
6+
set(MDCT_SOURCE_LIB ../src/mdct/vorbis_impl/mdct.c)
7+
add_executable(mdct_test ${mdct_test_sources})
8+
target_link_libraries(mdct_test mdct_impl gtest_main)

0 commit comments

Comments
 (0)