From dd8035c87efec996164c1c0f5c78c790d72747d9 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sat, 23 Feb 2019 13:49:23 +0100 Subject: Add test to cmake --- test/CMakeLists.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 test/CMakeLists.txt (limited to 'test/CMakeLists.txt') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 0000000..e80e737 --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,28 @@ +add_executable(vec_example + vec_example.cpp +) + +target_compile_options(vec_example + PRIVATE + $<$: + -pedantic -Wall -Wextra -Wcast-qual -Wcast-align -Wpointer-arith + -Winit-self -Wshadow -Wswitch-enum -Wredundant-decls -Wfloat-equal + -Wundef -Wvla -Wconversion -Wstrict-aliasing + > + $<$:/W4> +) + +target_compile_features(vec_example + PRIVATE + cxx_std_17 +) + +target_include_directories(vec_example + PRIVATE + ${MM_INCLUDE_DIRS} +) + +target_link_libraries(vec_example + PRIVATE + MM::mm +) -- cgit v1.2.1