Commit a6c420b 1 parent c0a41cd commit a6c420b Copy full SHA for a6c420b
File tree 3 files changed +23
-0
lines changed
3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change @@ -6,12 +6,21 @@ You need C++11 compiler.
6
6
cmake > 2.8
7
7
libsndfiles
8
8
9
+ binary:
10
+
9
11
` cd src `
10
12
` mkdir build `
11
13
` cd build `
12
14
` cmake ../ `
13
15
` make `
14
16
17
+
18
+ binary and tests:
19
+
20
+ ` cd test `
21
+ ` cmake ../ `
22
+ ` make `
23
+
15
24
Usage:
16
25
You can use --help option to get help
17
26
Original file line number Diff line number Diff line change
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)
You can’t perform that action at this time.
0 commit comments