Skip to content

Commit

Permalink
build: import SQLite3
Browse files Browse the repository at this point in the history
  • Loading branch information
csirianni committed Oct 20, 2023
1 parent 7746ad9 commit e19b307
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion backend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
target_link_libraries(${PROJECT_NAME} Crow::Crow SQLite::SQLite3)
1 change: 1 addition & 0 deletions backend/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
3 changes: 2 additions & 1 deletion backend/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
#include <string.h>

#include "crow.h"
#include <sqlite3.h>

int main(void) {
int main() {
// delcare crow application
crow::SimpleApp app;

Expand Down

0 comments on commit e19b307

Please sign in to comment.