Fix #95: rewrite old instruction about adding SQLiteCpp as a CMake subdirectory

This commit is contained in:
Sébastien Rombauts 2016-08-02 16:24:31 +02:00
parent 1470735e94
commit 9d1ea82313

View File

@ -91,8 +91,8 @@ To use this wrapper, you need to add the 10 SQLiteC++ source files from the src/
in your project code base, and compile/link against the sqlite library.
The easiest way to do this is to add the wrapper as a library.
The proper "CMakeLists.txt" file defining the static library is provided in the src/ subdirectory,
so you simply have to add_directory(SQLiteCpp/src) to you main CMakeLists.txt
The "CMakeLists.txt" file defining the static library is provided in the root directory,
so you simply have to add_subdirectory(SQLiteCpp) to you main CMakeLists.txt
and link to the "SQLiteCpp" wrapper library.
Thus this SQLiteCpp repository can directly be used as a Git submoldule.