Skip to content

Commit

Permalink
Merge pull request #293 Remove FindSQLiteCpp.cmake from sum01/fix_283
Browse files Browse the repository at this point in the history
  • Loading branch information
SRombauts committed Aug 19, 2020
2 parents cc2e488 + 72c4983 commit a6bb7bc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 64 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ set(SQLITECPP_SCRIPT
build.sh
cpplint.py
Doxyfile
cmake/FindSQLiteCpp.cmake
cmake/FindSQLite3.cmake
cmake/SQLiteCppConfig.cmake.in
)
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,20 @@ git submodule init
git submodule update
```

#### Using SQLiteCpp on a system-wide installation

If you installed this package to your system, a `SQLiteCppConfig.cmake` file will be generated & installed to your system.
This file lets you link against the SQLiteCpp library for use in your Cmake project.

Here's an example of using this in your CMakeLists.txt
```cmake
# You can optionally define a minimum version in this call
find_package(SQLiteCpp REQUIRED)
# For this example, lets say you created an target with add_executable (or add_library) called "my_target"
# You can optionally declare PUBLIC or PRIVATE linkage here, depending on your needs.
target_link_libraries(my_target PRIVATE SQLiteCpp)
```

#### CMake and tests
A CMake configuration file is also provided for multi-platform support and testing.

Expand Down
63 changes: 0 additions & 63 deletions cmake/FindSQLiteCpp.cmake

This file was deleted.

0 comments on commit a6bb7bc

Please sign in to comment.