aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2016-03-31 02:20:24 +0300
committerDaniil Cherednik <dan.cherednik@gmail.com>2016-04-05 02:43:19 +0300
commit1db99f4e5ac076a41a23b1e0f424f5f24f4c3df6 (patch)
tree70f6faf0a34704dba932d9aba8f1c8c83785775c
parent3d296a72ef26b6dc48224428a661168faeff2c05 (diff)
downloadatracdenc-1db99f4e5ac076a41a23b1e0f424f5f24f4c3df6.tar.gz
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)