2 # Once done, it will set SQLITE_FOUND to true, SQLITE_LIBRARY and SQLITE_INCLUDE_DIR.
4 set( SQLITE_FOUND "NO" )
6 find_path( SQLITE_INCLUDE_DIR
15 find_library( SQLITE_LIBRARY
24 # TODO: check that version is >=3.5.0 (for the incremental blob IO features and open_v2)
26 if( SQLITE_INCLUDE_DIR AND SQLITE_LIBRARY )
27 set( SQLITE_FOUND "YES" )
28 endif( SQLITE_INCLUDE_DIR AND SQLITE_LIBRARY )
31 if( NOT SQLITE_FIND_QUIETLY )
32 message( STATUS "Found SQLite: ${SQLITE_LIBRARY}" )
33 endif( NOT SQLITE_FIND_QUIETLY )
35 if( SQLITE_FIND_REQUIRED )
36 message( FATAL_ERROR "Could not find SQLite" )
37 endif( SQLITE_FIND_REQUIRED )