Skip to content

Commit a6bb7bc

Browse files
authored
Merge pull request SRombauts#293 Remove FindSQLiteCpp.cmake from sum01/fix_283
2 parents cc2e488 + 72c4983 commit a6bb7bc

File tree

3 files changed

+14
-64
lines changed

3 files changed

+14
-64
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
)

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,20 @@ git submodule init
131131
git 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
135149
A CMake configuration file is also provided for multi-platform support and testing.
136150

cmake/FindSQLiteCpp.cmake

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)