summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniil Cherednik <[email protected]>2016-03-31 02:20:24 +0300
committerDaniil Cherednik <[email protected]>2016-03-31 02:35:28 +0300
commita6c420b95fc06f05dc3f9b4bf1ec463412fa1bd7 (patch)
tree6b848cd60a488767f58f54cb0bfcafb3455eb410
parentc0a41cd391cb29e41a6d00e419830fd235837e80 (diff)
mdct ut added to CMake build
-rw-r--r--CMakeLists.txt6
-rw-r--r--README.md9
-rw-r--r--test/CMakeLists.txt8
3 files changed, 23 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..4b6b58c
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,6 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
+
+add_subdirectory(3rd/gtest-1.7.0)
+add_subdirectory(src)
+add_subdirectory(test)
+
diff --git a/README.md b/README.md
index 3cc48c9..5daf615 100644
--- a/README.md
+++ b/README.md
@@ -6,12 +6,21 @@ You need C++11 compiler.
cmake > 2.8
libsndfiles
+binary:
+
`cd src`
`mkdir build`
`cd build`
`cmake ../`
`make`
+
+binary and tests:
+
+`cd test`
+`cmake ../`
+`make`
+
Usage:
You can use --help option to get help
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
new file mode 100644
index 0000000..2e33685
--- /dev/null
+++ b/test/CMakeLists.txt
@@ -0,0 +1,8 @@
+include_directories(${gtest_SOURCE_DIR}/include)
+
+set(mdct_test_sources
+ ../src/mdct/mdct_ut.cpp
+)
+set(MDCT_SOURCE_LIB ../src/mdct/vorbis_impl/mdct.c)
+add_executable(mdct_test ${mdct_test_sources})
+target_link_libraries(mdct_test mdct_impl gtest_main)