Commit befb392a authored by jcl's avatar jcl

detect sqlite3 lib

git-svn-id: http://svn.oamp.fr/repos/unsio/trunk@99 ce2cc22f-6084-46ce-a062-084b172ee5dc
parent e6468840
# --------------------------------------------------------
# CMake module to detect SQLITE3 library
# --------------------------------------------------------
SET(SQLITE3_FOUND FALSE)
SET(DNOSQLITE3 "-DNOSQLITE3") # if sqlite3 does not exist
SET(SQLITE3_LIB_PATH "")
SET(SQLITE3_H_PATH "")
SET(SQLITE3_LIB "")
find_file(SQLITE3_H NAMES "sqlite3.h" PATH /usr/local/include)
IF (SQLITE3_H)
get_filename_component(SQLITE3_H_PATH ${SQLITE3_H} PATH)
MESSAGE(STATUS "Found sqlite3.h:" ${SQLITE3_H})
MESSAGE(STATUS "Found sqlite3.h path:" ${SQLITE3_H_PATH})
find_library(SQLITE3 NAMES sqlite3 PATH /usr/local/lib)
IF (SQLITE3)
SET(SQLITE3_FOUND TRUE)
SET(DNOSQLITE3 "") # SQLITE3 exist
SET(SQLITE3_LIB sqlite3)
MESSAGE(STATUS "Found library here :" ${SQLITE3})
get_filename_component(SQLITE3_LIB_PATH ${SQLITE3} PATH)
MESSAGE(STATUS "Found library PATH :" ${SQLITE3_LIB_PATH})
ENDIF(SQLITE3)
ENDIF(SQLITE3_H)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment