From 1c700ad9c07c43c1eb49c668e438b55fec17dfac Mon Sep 17 00:00:00 2001 From: everdrone Date: Sun, 24 Jun 2018 07:34:02 +0200 Subject: [PATCH] Rename test directory from `tests` to `test` --- CMakeLists.txt | 15 +++++++-------- {tests => test}/catch.hpp | 0 {tests => test}/test.cpp | 0 3 files changed, 7 insertions(+), 8 deletions(-) rename {tests => test}/catch.hpp (100%) rename {tests => test}/test.cpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index ed7a8f4..004febd 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ set( CMAKE_CXX_EXTENSIONS OFF ) set( CMAKE_COLOR_MAKEFILE ON ) set( CMAKE_VERBOSE_MAKEFILE ON ) -option(BUILD_TESTS "Build unit tests" ON) +option( BUILD_TESTS "Build unit tests" ON ) ### Targets @@ -41,13 +41,13 @@ set_target_properties( ) ### dist -set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${libsnd_VERSION}) +set( ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${libsnd_VERSION} ) add_custom_target(dist COMMAND tar -czf "${CMAKE_PROJECT_NAME}-${libsnd_VERSION}.tar.gz" source/ include/ docs/ examples/ - tests/ + test/ .gitignore CHANGELOG.md CMakeLists.txt @@ -76,13 +76,12 @@ elseif( CMAKE_COMPILER_IS_GNUCXX ) endif() ### Tests - -if (BUILD_TESTS) +if ( BUILD_TESTS ) enable_testing() add_executable( Test - tests/test.cpp + test/test.cpp ) target_include_directories( @@ -103,8 +102,8 @@ if (BUILD_TESTS) ) endif() -include(CMakePackageConfigHelpers) -include(GNUInstallDirs) +include( CMakePackageConfigHelpers ) +include( GNUInstallDirs ) install( TARGETS libsnd diff --git a/tests/catch.hpp b/test/catch.hpp similarity index 100% rename from tests/catch.hpp rename to test/catch.hpp diff --git a/tests/test.cpp b/test/test.cpp similarity index 100% rename from tests/test.cpp rename to test/test.cpp