From 922bc733353866719fbf5de29da23f423284d1dc Mon Sep 17 00:00:00 2001 From: Pavel Belikov Date: Thu, 23 Nov 2017 18:56:27 +0300 Subject: fix inclusion into multiple source files --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 81864d7..24d4a08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,5 +35,10 @@ else () target_compile_options(argstest PRIVATE -Wall -Wextra -Werror -pedantic -Wshadow -Wunused-parameter) endif () +add_executable(argstest-multiple-inclusion test/multiple_inclusion_1.cpp test/multiple_inclusion_2.cpp) +target_link_libraries(argstest-multiple-inclusion args) +set_property(TARGET argstest-multiple-inclusion PROPERTY CXX_STANDARD 11) + enable_testing() add_test(NAME "test" COMMAND argstest) +add_test(NAME "test-multiple-inclusion" COMMAND argstest-multiple-inclusion) -- cgit v1.2.1 From 479527bb9224e250f5c69beca09c9d58e26981a5 Mon Sep 17 00:00:00 2001 From: Pavel Belikov Date: Thu, 23 Nov 2017 19:49:39 +0300 Subject: fix coveralls --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 24d4a08..322e8d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,7 @@ else () target_compile_options(argstest PRIVATE -Wall -Wextra -Werror -pedantic -Wshadow -Wunused-parameter) endif () -add_executable(argstest-multiple-inclusion test/multiple_inclusion_1.cpp test/multiple_inclusion_2.cpp) +add_executable(argstest-multiple-inclusion test/multiple_inclusion_1.cxx test/multiple_inclusion_2.cxx) target_link_libraries(argstest-multiple-inclusion args) set_property(TARGET argstest-multiple-inclusion PROPERTY CXX_STANDARD 11) -- cgit v1.2.1