Skip to content

Commit

Permalink
Add database
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioborondo committed Dec 20, 2023
1 parent 252ddb0 commit 1b63a7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ target_link_libraries(sw
Boost::program_options
SQLite::SQLite3
)

add_custom_command(TARGET sw POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/sw.db ${PROJECT_BINARY_DIR}/sw.db
)
2 changes: 1 addition & 1 deletion src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace po = boost::program_options;
void db()
{
sqlite3* db;
sqlite3_open("test.db", &db);
sqlite3_open("sw.db", &db);
sqlite3_close(db);
}

Expand Down
Empty file added sw.db
Empty file.

0 comments on commit 1b63a7b

Please sign in to comment.