From 5be8eaa7c94457d7f09cdc4e2e6dbee839e1db8b Mon Sep 17 00:00:00 2001 From: QuentinPerret Date: Tue, 9 May 2023 13:37:36 +0200 Subject: [PATCH] change cmake params --- .gitignore | 4 ++++ Code-C/CMakeLists.txt | 6 ++++-- Code-C/ctest.c | 2 +- Code-C/main.c | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 7ecb25c..3680055 100644 --- a/.gitignore +++ b/.gitignore @@ -53,6 +53,7 @@ Makefile *.i*86 *.x86_64 *.hex +*/Executable # Debug files *.dSYM/ @@ -86,4 +87,7 @@ _deps # External projects *-prefix/ +### DataFiles ### +*/RawDataFiles + # End of https://www.toptal.com/developers/gitignore/api/cmake,c diff --git a/Code-C/CMakeLists.txt b/Code-C/CMakeLists.txt index 5b391f7..49a188a 100644 --- a/Code-C/CMakeLists.txt +++ b/Code-C/CMakeLists.txt @@ -3,11 +3,13 @@ project(Traitement-signal-plantes C) include(CTest) enable_testing() -set(CMAKE_C_FLAGS "-std=c99 -g -Wall") +set(CMAKE_C_FLAGS "-std=c99 -g -Wall") #what are the flag for ? -file(MAKE_DIRECTORY RawDataFiles) +file(MAKE_DIRECTORY RawDataFiles) #why do we make this folder each time ? file(MAKE_DIRECTORY Executable) +set (CMAKE_RUNTIME_OUTPUT_DIRECTORY Executable) #Set Executable directory as default exectutable file location + add_executable(exect fileGestion.c getArray.c average.c growthRate.c power.c queue.c simulateFlux.c main.c) # add_executable(exect main.c simulateFlux.c queue.c power.c growthRate.c average.c getArray.c fileGestion.c) diff --git a/Code-C/ctest.c b/Code-C/ctest.c index 3043142..8beca7e 100644 --- a/Code-C/ctest.c +++ b/Code-C/ctest.c @@ -24,7 +24,7 @@ int nbRowBinFile = 900011; int nbRowIgnore = 19; Pqueue firstRawDataQueue; -// Captor 1 2 3 4 5 6 7 8 +// Captor 1 2 3 4 5 6 7 8 bool selectionCaptors[] = {true, false, true, false, false, false, true, false}; int cptData = 0; diff --git a/Code-C/main.c b/Code-C/main.c index 77e17c5..4ce20ad 100644 --- a/Code-C/main.c +++ b/Code-C/main.c @@ -19,8 +19,8 @@ int nbRowBinFile = 900011; int nbRowIgnore = 19; Pqueue firstRawDataQueue; -// Captor 1 2 3 4 5 6 7 8 -bool selectionCaptors[] = {true, false, false, false, false, false, true, false}; +// Captor 1 2 3 4 5 6 7 8 +bool selectionCaptors[] = {true, false, true, false, false, false, true, false}; int cptData = 0; int cptFile = 1;