From 8d05b0b7321271b05365d3e89bfb0fd5a26d68a6 Mon Sep 17 00:00:00 2001 From: simon987 Date: Tue, 24 Dec 2019 11:36:20 -0500 Subject: [PATCH] Add optimisation compile flags --- src/CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index dc9592a..9af697e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -27,5 +27,18 @@ add_library(wavelib STATIC ${SOURCE_FILES} ${HEADER_FILES}) set_property(TARGET wavelib PROPERTY FOLDER "lib") +target_compile_options(wavelib + PRIVATE + -fPIC + -Ofast + -march=native + -fno-stack-protector + -fomit-frame-pointer + -freciprocal-math +) + + + + target_include_directories(wavelib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}../header)