File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,23 @@ The "CMakeLists.txt" file defining the static library is provided in the root di
95
95
so you simply have to add_subdirectory(SQLiteCpp) to you main CMakeLists.txt
96
96
and link to the "SQLiteCpp" wrapper library.
97
97
98
+ Example for Linux:
99
+ ``` cmake
100
+ add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp)
101
+
102
+ INCLUDE_DIRECTORIES(
103
+ ${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp/include
104
+ )
105
+
106
+ ADD_executable(main src/main.cpp)
107
+ target_link_libraries(main
108
+ SQLiteCpp
109
+ sqlite3
110
+ pthread
111
+ dl
112
+ )
113
+
114
+ ```
98
115
Thus this SQLiteCpp repository can be directly used as a Git submoldule.
99
116
See the [ SQLiteCpp_Example] ( https://github.com/SRombauts/SQLiteCpp_Example ) side repository for a standalone "from scratch" example.
100
117
You can’t perform that action at this time.
0 commit comments