From e19b307f55fdaa4a09c77d718f5054f313e8680f Mon Sep 17 00:00:00 2001 From: Cedric Sirianni Date: Fri, 20 Oct 2023 11:41:16 -0400 Subject: [PATCH] build: import SQLite3 --- backend/CMakeLists.txt | 3 ++- backend/conanfile.py | 1 + backend/src/main.cpp | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt index 04e6022..483b9e4 100644 --- a/backend/CMakeLists.txt +++ b/backend/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.27) project(backend) find_package(Crow REQUIRED) +find_package(SQLite3 REQUIRED) add_executable(${PROJECT_NAME} src/main.cpp) -target_link_libraries(${PROJECT_NAME} Crow::Crow) \ No newline at end of file +target_link_libraries(${PROJECT_NAME} Crow::Crow SQLite::SQLite3) \ No newline at end of file diff --git a/backend/conanfile.py b/backend/conanfile.py index 010933f..e9af6e1 100644 --- a/backend/conanfile.py +++ b/backend/conanfile.py @@ -7,6 +7,7 @@ class BackendRecipe(ConanFile): def requirements(self): self.requires("crowcpp-crow/1.0+5") + self.requires("sqlite3/3.42.0") def build_requirements(self): self.tool_requires("cmake/3.22.6") diff --git a/backend/src/main.cpp b/backend/src/main.cpp index c5f1e32..b4059ae 100644 --- a/backend/src/main.cpp +++ b/backend/src/main.cpp @@ -3,8 +3,9 @@ #include #include "crow.h" +#include -int main(void) { +int main() { // delcare crow application crow::SimpleApp app;