mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 17:56:13 -04:00
added better instructions for linux compilation
This commit is contained in:
parent
48740ac7c4
commit
2019477b48
17
README.md
17
README.md
@ -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
|
so you simply have to add_subdirectory(SQLiteCpp) to you main CMakeLists.txt
|
||||||
and link to the "SQLiteCpp" wrapper library.
|
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.
|
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.
|
See the [SQLiteCpp_Example](https://github.com/SRombauts/SQLiteCpp_Example) side repository for a standalone "from scratch" example.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user