Skip to content

Commit

Permalink
added better instructions for linux compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
gocarlos authored Dec 15, 2017
1 parent 48740ac commit 2019477
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,23 @@ The "CMakeLists.txt" file defining the static library is provided in the root di
so you simply have to add_subdirectory(SQLiteCpp) to you main CMakeLists.txt
and link to the "SQLiteCpp" wrapper library.

Example for Linux:
```cmake
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp/include
)
ADD_executable(main src/main.cpp)
target_link_libraries(main
SQLiteCpp
sqlite3
pthread
dl
)
```
Thus this SQLiteCpp repository can be directly used as a Git submoldule.
See the [SQLiteCpp_Example](https://github.com/SRombauts/SQLiteCpp_Example) side repository for a standalone "from scratch" example.

Expand Down

0 comments on commit 2019477

Please sign in to comment.