diff options
author | Pavel Belikov <pavel.fuchs.belikov@gmail.com> | 2017-11-23 18:56:27 +0300 |
---|---|---|
committer | Pavel Belikov <pavel.fuchs.belikov@gmail.com> | 2017-11-23 18:56:27 +0300 |
commit | 922bc733353866719fbf5de29da23f423284d1dc (patch) | |
tree | b67d3629772032e1983a45f3c8ad7af8f4856ea9 /CMakeLists.txt | |
parent | Merge pull request #44 from pavel-belikov/better-value-parsing (diff) | |
download | args.hxx-922bc733353866719fbf5de29da23f423284d1dc.tar.xz |
fix inclusion into multiple source files
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
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) |