Skip to content

Commit

Permalink
Minor change for naming the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hbe72 committed May 15, 2018
1 parent 3a406b6 commit 84faef0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ git clone https://github.com/hbe72/dsp.git
2. Build tests:
* Linux and Mac parallel with 8 cores
```
cmake --build . --target tests -- -j8
cmake --build . --target Tests -- -j8
```
* Windows
```
cmake --build . --target test/tests
cmake --build . --target test/Tests
```
3. Run the tests
```
Expand Down
8 changes: 4 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ set(sample_cdsp_sources
virtual_float.cpp)

include(CTest)
add_custom_target(tests)
add_custom_target(Tests)

foreach(source ${sample_cdsp_sources})
string(REPLACE "\." "_" target "${source}")
string(REPLACE "/" "-" target "${target}")
string(REPLACE "\.cpp" "" stripped "${source}")
string(REPLACE "/" "-" target "Test-${stripped}")
add_executable(${target} ${source})
add_test("${target}" "${target}")

Expand All @@ -75,5 +75,5 @@ foreach(source ${sample_cdsp_sources})
${target} PRIVATE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
add_dependencies(tests "${target}")
add_dependencies(Tests "${target}")
endforeach(source)

0 comments on commit 84faef0

Please sign in to comment.