mirror of
https://github.com/minetest/minetest.git
synced 2024-12-29 09:27:30 +01:00
19 lines
590 B
CMake
19 lines
590 B
CMake
# Look for sqlite3, use our own if not found
|
|
|
|
FIND_PATH(SQLITE3_INCLUDE_DIR sqlite3.h)
|
|
|
|
FIND_LIBRARY(SQLITE3_LIBRARY NAMES sqlite3)
|
|
|
|
IF(SQLITE3_LIBRARY AND SQLITE3_INCLUDE_DIR)
|
|
SET( SQLITE3_FOUND TRUE )
|
|
ENDIF(SQLITE3_LIBRARY AND SQLITE3_INCLUDE_DIR)
|
|
|
|
IF(SQLITE3_FOUND)
|
|
MESSAGE(STATUS "Found system sqlite3 header file in ${SQLITE3_INCLUDE_DIR}")
|
|
MESSAGE(STATUS "Found system sqlite3 library ${SQLITE3_LIBRARY}")
|
|
ELSE(SQLITE3_FOUND)
|
|
SET(SQLITE3_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/sqlite)
|
|
SET(SQLITE3_LIBRARY sqlite3)
|
|
MESSAGE(STATUS "Using project sqlite3 library")
|
|
ENDIF(SQLITE3_FOUND)
|