diff --git a/Code-C/CMakeLists.txt b/Code-C/CMakeLists.txt index 8323475..584eb68 100644 --- a/Code-C/CMakeLists.txt +++ b/Code-C/CMakeLists.txt @@ -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) diff --git a/Code-C/main.c b/Code-C/main.c index d2ff25a..d8555f4 100644 --- a/Code-C/main.c +++ b/Code-C/main.c @@ -1,5 +1,6 @@ #include #include +#include #include "./Include/simulateFlux.h" #include "./Include/power.h"