summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt28
-rw-r--r--test/vec_example.cpp (renamed from test/example.cpp)0
2 files changed, 28 insertions, 0 deletions
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
+ $<$<CXX_COMPILER_ID:GNU>:
+ -pedantic -Wall -Wextra -Wcast-qual -Wcast-align -Wpointer-arith
+ -Winit-self -Wshadow -Wswitch-enum -Wredundant-decls -Wfloat-equal
+ -Wundef -Wvla -Wconversion -Wstrict-aliasing
+ >
+ $<$<CXX_COMPILER_ID:MSVC>:/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
+)
diff --git a/test/example.cpp b/test/vec_example.cpp
index 3a00f58..3a00f58 100644
--- a/test/example.cpp
+++ b/test/vec_example.cpp