diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2016-03-31 02:20:24 +0300 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2016-04-05 02:43:19 +0300 |
commit | 1db99f4e5ac076a41a23b1e0f424f5f24f4c3df6 (patch) | |
tree | 70f6faf0a34704dba932d9aba8f1c8c83785775c | |
parent | 3d296a72ef26b6dc48224428a661168faeff2c05 (diff) | |
download | atracdenc-1db99f4e5ac076a41a23b1e0f424f5f24f4c3df6.tar.gz |
mdct ut added to CMake build
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | README.md | 9 | ||||
-rw-r--r-- | test/CMakeLists.txt | 8 |
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) + @@ -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) |