-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (22 loc) · 1.11 KB
/
CMakeLists.txt
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
29
30
31
cmake_minimum_required(VERSION 3.10)
project(SIMD_GAME
VERSION
1.0
DESCRIPTION
"SIMD Game"
LANGUAGES
C CXX
)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
add_executable(mat_mul ${CMAKE_SOURCE_DIR}/simd_matrix_ops/mat_mul.c)
add_executable(simd_matrix_mul ${CMAKE_SOURCE_DIR}/simd_matrix_ops/simd_matrix_mul.c)
add_executable(crc_cal ${CMAKE_SOURCE_DIR}/crc_calc/crc_cal.c)
add_executable(convolution ${CMAKE_SOURCE_DIR}/convolution/convolution.c)
add_executable(reverse_bits ${CMAKE_SOURCE_DIR}/reverse_bits/reverse_bits.c)
add_executable(checksum ${CMAKE_SOURCE_DIR}/checksum/checksum.c)
target_compile_options(mat_mul PRIVATE -std=c11 -Wall -Wextra -Wpedantic -g)
target_compile_options(simd_matrix_mul PRIVATE -std=c11 -Wall -Wextra -Wpedantic -g -march=native -mavx2)
target_compile_options(crc_cal PRIVATE -std=c11 -Wall -Wextra -Wpedantic -g)
target_compile_options(convolution PRIVATE -std=c11 -Wall -Wextra -Wpedantic -g)
target_compile_options(reverse_bits PRIVATE -std=c11 -Wall -Wextra -Wpedantic -g)
target_compile_options(checksum PRIVATE -std=c11 -Wall -Wextra -Wpedantic -g)