-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (32 loc) · 987 Bytes
/
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
32
33
34
35
36
37
38
cmake_minimum_required(VERSION 3.10)
project(feistel)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -maes -std=c++2a -O3 -g")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -maes -std=c++2a -g")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -mavx2 -maes -msha -mbmi2 -std=c++1z -O3 -ggdb -fno-omit-frame-pointer -DNDEBUG=")
# performance testing
add_executable(shootout
shootout.cpp
LazyFisherYates.h
AesFunc.h
ShaFeistel.h
Fnv1aCiphers.h
simdfeistel.h
donothing.cpp
ManyU32.h
murmur32.h)
# statistical testing
add_executable(binaryrng
binaryrng.cpp)
# statistical testing with big crush
# http://www.pcg-random.org/posts/how-to-test-with-testu01.html
add_executable(runbigcrush
PlaygroundFeistel.h
GenericFeistel.h
bigcrush.cpp)
target_link_libraries(runbigcrush
PRIVATE
testu01
testu01probdist
testu01mylib)
#murmur crypt
add_executable(mrurmurcrypt murmurmain.cpp MurmurCryptFixed64.h)