diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2018-01-09 13:01:23 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2018-01-09 14:21:09 (GMT) |
commit | efd279cdfb64f1ca9ab2dd55c55e836634431198 (patch) | |
tree | 9dfb634eb209a9b2e2e1cd200fa4b5dfbbba1eab /Tests/CMakeServerLib | |
parent | f7f34a46e674fcf0326b0dbbc6dbb35c9e3c022f (diff) | |
download | CMake-efd279cdfb64f1ca9ab2dd55c55e836634431198.zip CMake-efd279cdfb64f1ca9ab2dd55c55e836634431198.tar.gz CMake-efd279cdfb64f1ca9ab2dd55c55e836634431198.tar.bz2 |
cmake: specify source file extensions
Diffstat (limited to 'Tests/CMakeServerLib')
-rw-r--r-- | Tests/CMakeServerLib/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/CMakeServerLib/CMakeLists.txt b/Tests/CMakeServerLib/CMakeLists.txt index 5e1ad0c..2c23c2d 100644 --- a/Tests/CMakeServerLib/CMakeLists.txt +++ b/Tests/CMakeServerLib/CMakeLists.txt @@ -5,7 +5,7 @@ include_directories( ) set(CMakeServerLib_TESTS - testServerBuffering + testServerBuffering.cpp ) create_test_sourcelist(CMakeLib_TEST_SRCS CMakeServerLibTests.cxx ${CMakeServerLib_TESTS}) @@ -15,6 +15,7 @@ target_link_libraries(CMakeServerLibTests CMakeLib CMakeServerLib) SET_PROPERTY(TARGET CMakeServerLibTests PROPERTY C_CLANG_TIDY "") SET_PROPERTY(TARGET CMakeServerLibTests PROPERTY CXX_CLANG_TIDY "") -foreach(test ${CMakeServerLib_TESTS}) +foreach(testfile ${CMakeServerLib_TESTS}) + get_filename_component(test "${testfile}" NAME_WE) add_test(CMakeServerLib.${test} CMakeServerLibTests ${test} ${${test}_ARGS}) endforeach() |