-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (20 loc) · 1.02 KB
/
CMakeLists.txt
File metadata and controls
27 lines (20 loc) · 1.02 KB
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
cmake_minimum_required(VERSION 3.10)
project(oneday C)
add_compile_options(-std=gnu2x -fenable-matrix -ffast-math -Weverything -fwrapv -fno-exceptions -fno-rtti -fpic -fPIC -fPIE -pie -fvisibility=hidden -static-pie -flto -fwhole-program -ffat-lto-objects -march=native -g3)
add_link_options(-std=gnu2x -fenable-matrix -ffast-math -Weverything -fwrapv -fno-exceptions -fno-rtti -fpic -fPIC -fPIE -pie -fvisibility=hidden -static-pie -flto -fwhole-program -ffat-lto-objects -march=native -g3)
add_compile_options(
-Wno-unsafe-buffer-usage -Wno-c++98-compat -Wno-gnu-auto-type -Wno-declaration-after-statement -Wno-unused-parameter
-Wno-pre-c2x-compat
$<$<CONFIG:DEBUG>:-Og>
$<$<CONFIG:RELEASE>:-Ofast>
)
add_compile_definitions(
$<$<CONFIG:DEBUG>:DEBUG>
$<$<CONFIG:RELEASE>:NDEBUG>
)
include_directories(./)
#add_executable(mcmc src/mcmc.c src/mcmc.h)
#add_executable(sopt src/sopt.c src/sopt.h)
add_executable(riscv src/riscv.c)
add_executable(tonygrad src/tonygrad.c src/tonygrad.h
)