add sql3 in main

This commit is contained in:
QuentinPerret 2023-06-02 16:10:31 +02:00
parent 2443e553c8
commit ab1a87c6ac
2 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@ project(Traitement-signal-plantes C)
include(CTest)
enable_testing()
set(CMAKE_C_FLAGS "-std=c99 -g -Wall") #what are the flag for ?
set(CMAKE_C_FLAGS "-lsqlite3 -std=c99 -g -Wall") #what are the flag for ?
file(MAKE_DIRECTORY RawDataFiles) #why do we make this folder each time ?
file(MAKE_DIRECTORY Executable)
@ -13,9 +13,8 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY Executable) #Set Executable directory as def
add_executable(exect fileGestion.c getArray.c average.c growthRate.c power.c queue.c simulateFlux.c database.c main.c)
# add_executable(exect main.c simulateFlux.c queue.c power.c growthRate.c average.c getArray.c fileGestion.c)
find_package (SQLite3)
include_directories(${SQLite3_INCLUDE_DIRS})
target_link_libraries (exect ${SQLite3_LIBRARIES} m)
find_package(SQLite3)
target_link_libraries(exect ${SQLite3_LIBRARIES} m)
find_package(Threads)

View file

@ -1,5 +1,6 @@
#include <pthread.h>
#include <stdbool.h>
#include <sqlite3.h>
#include "./Include/simulateFlux.h"
#include "./Include/power.h"