blob: 7b8fb6ff409f340abc7f8589bd87615f86f406a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
project(fastrng C)
cmake_minimum_required(VERSION 2.4)
add_definitions(-D_GNU_SOURCE)
add_executable(fastrng main.c)
set_target_properties(fastrng PROPERTIES
COMPILE_FLAGS "-O2 -std=gnu99 -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wsuggest-attribute=noreturn -Wundef -Wpointer-arith -Wcast-qual -Wlogical-op -Wshadow"
LINK_FLAGS "")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG -fsanitize=undefined -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fsanitize=address")
target_link_libraries(fastrng -lpthread -lgsl -lgslcblas -lssl -lcrypto)
install(TARGETS fastrng DESTINATION bin)
|