FindSqlite3.cmake 590 B

12345678910111213141516171819
  1. # Look for sqlite3, use our own if not found
  2. FIND_PATH(SQLITE3_INCLUDE_DIR sqlite3.h)
  3. FIND_LIBRARY(SQLITE3_LIBRARY NAMES sqlite3)
  4. IF(SQLITE3_LIBRARY AND SQLITE3_INCLUDE_DIR)
  5. SET( SQLITE3_FOUND TRUE )
  6. ENDIF(SQLITE3_LIBRARY AND SQLITE3_INCLUDE_DIR)
  7. IF(SQLITE3_FOUND)
  8. MESSAGE(STATUS "Found system sqlite3 header file in ${SQLITE3_INCLUDE_DIR}")
  9. MESSAGE(STATUS "Found system sqlite3 library ${SQLITE3_LIBRARY}")
  10. ELSE(SQLITE3_FOUND)
  11. SET(SQLITE3_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/sqlite)
  12. SET(SQLITE3_LIBRARY sqlite3)
  13. MESSAGE(STATUS "Using project sqlite3 library")
  14. ENDIF(SQLITE3_FOUND)