blob: e80e7370dd5fe09bfaeed2c8a652634b12d6285c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
)
|