Check out example codes for "sqlite woth cmake". It will help you in understanding the concepts better.

Code Example 1

find_package (SQLite3)

include_directories(${SQLite3_INCLUDE_DIRS})
target_link_libraries (${OUT_TARGET} ${SQLite3_LIBRARIES})

Learn ReactJs, React Native from akashmittal.com