diff options
Diffstat (limited to '')
-rw-r--r-- | test/CMakeLists.txt | 8 | ||||
-rw-r--r-- | test/echo.cpp (renamed from test/args.cpp) | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a46bf49..43b4d4d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,9 +1,9 @@ -add_executable(args args.cpp) -set_target_properties(args PROPERTIES OUTPUT_NAME winapi-common-test-args) +add_executable(echo echo.cpp) +set_target_properties(echo PROPERTIES OUTPUT_NAME winapi-common-test-echo) -install(TARGETS args RUNTIME DESTINATION bin) +install(TARGETS echo RUNTIME DESTINATION bin) if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$<TARGET_PDB_FILE:args>" DESTINATION bin OPTIONAL) + install(FILES "$<TARGET_PDB_FILE:echo>" DESTINATION bin OPTIONAL) endif() add_subdirectory(unit_tests) diff --git a/test/args.cpp b/test/echo.cpp index 470819a..6d6e6df 100644 --- a/test/args.cpp +++ b/test/echo.cpp @@ -3,10 +3,12 @@ // For details, see https://github.com/egor-tensin/winapi-common. // Distributed under the MIT License. +// Simple UTF-16 echo. + #include <iostream> int wmain(int argc, wchar_t* argv[]) { - for (int i = 0; i < argc; ++i) { + for (int i = 1; i < argc; ++i) { std::wcout << argv[i] << L'\n'; } return 0; |