File tree Expand file tree Collapse file tree 3 files changed +14
-64
lines changed Expand file tree Collapse file tree 3 files changed +14
-64
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,6 @@ set(SQLITECPP_SCRIPT
165165 build .sh
166166 cpplint.py
167167 Doxyfile
168- cmake/FindSQLiteCpp.cmake
169168 cmake/FindSQLite3.cmake
170169 cmake/SQLiteCppConfig.cmake.in
171170)
Original file line number Diff line number Diff line change @@ -131,6 +131,20 @@ git submodule init
131131git submodule update
132132```
133133
134+ #### Using SQLiteCpp on a system-wide installation
135+
136+ If you installed this package to your system, a ` SQLiteCppConfig.cmake ` file will be generated & installed to your system.
137+ This file lets you link against the SQLiteCpp library for use in your Cmake project.
138+
139+ Here's an example of using this in your CMakeLists.txt
140+ ``` cmake
141+ # You can optionally define a minimum version in this call
142+ find_package(SQLiteCpp REQUIRED)
143+ # For this example, lets say you created an target with add_executable (or add_library) called "my_target"
144+ # You can optionally declare PUBLIC or PRIVATE linkage here, depending on your needs.
145+ target_link_libraries(my_target PRIVATE SQLiteCpp)
146+ ```
147+
134148#### CMake and tests
135149A CMake configuration file is also provided for multi-platform support and testing.
136150
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments