aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a5fd18e..1f2f8ee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,10 +5,12 @@ set(CMAKE_C_STANDARD 17)
file(GLOB SOURCES "src/*.c")
file(GLOB TEST_SOURCES "test/*.c")
+add_compile_options(-Wall -pedantic -Wextra -march=native)
+
add_executable(main main.c ${SOURCES})
target_link_libraries(main m)
-target_compile_options(main PRIVATE -Wall -pedantic -Wextra)
+target_compile_options(main PRIVATE)
add_executable(test test.c ${SOURCES} ${TEST_SOURCES})
target_link_libraries(test m)
-target_compile_options(test PRIVATE -Wall -pedantic -Wextra)
+target_compile_options(test PRIVATE)