thankyou for your answer
unfortunately I'm really quite new to c++ , above for compile and linking process
following the tutorial cmake clion I added the last two lines lines to make file
1 2 3 4 5 6 7 8 9 10
|
cmake_minimum_required(VERSION 3.13)
project(testdb)
set(CMAKE_CXX_STANDARD 17)
add_executable(testdb main.cpp)
#lines added
include_directories( /usr/local/lib )
find_package ( sqlite3 REQUIRED /usr/local/lib/libsqlite3.so)
|
and these are errors
/opt/clion-2018.3.1/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/adriano/data/progetti/clion/testdb
CMake Error at CMakeLists.txt:9 (find_package):
By not providing "Findsqlite3.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "sqlite3", but
CMake did not find one.
Could not find a package configuration file provided by "sqlite3" with any
of the following names:
sqlite3Config.cmake
sqlite3-config.cmake
Add the installation prefix of "sqlite3" to CMAKE_PREFIX_PATH or set
"sqlite3_DIR" to a directory containing one of the above files. If
"sqlite3" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
See also "/home/adriano/data/progetti/clion/testdb/cmake-build-debug/CMakeFiles/CMakeOutput.log".
[Finished]
I don't want to recompile sqlite
I want to just "use" the library
the directory /usr/local/lib should contains all the necessary
1 2 3 4 5
|
-rw-r--r-- 1 root root 13452614 Dec 28 08:02 libsqlite3.a
-rwxr-xr-x 1 root root 956 Dec 28 08:02 libsqlite3.la*
lrwxrwxrwx 1 root root 19 Dec 28 08:02 libsqlite3.so -> libsqlite3.so.0.8.6*
lrwxrwxrwx 1 root root 19 Dec 28 08:02 libsqlite3.so.0 -> libsqlite3.so.0.8.6*
-rwxr-xr-x 1 root root 5496672 Dec 28 08:02 libsqlite3.so.0.8.6*
|