2016-11-11 07:23:34 +00:00
|
|
|
message( " * Sqlite3 Data-Base (http://www.sqlite3ql.org), distributed with MYDDAS" )
|
2015-11-05 17:06:15 +00:00
|
|
|
|
|
|
|
set( YAPSQLITE3_SOURCES
|
|
|
|
myddas_sqlite3.c
|
2016-11-24 04:35:39 +00:00
|
|
|
src/sqlite3.h
|
|
|
|
src/sqlite3ext.h
|
2015-11-05 17:06:15 +00:00
|
|
|
)
|
|
|
|
|
2018-02-15 00:02:44 +00:00
|
|
|
|
2016-11-11 07:23:34 +00:00
|
|
|
#sqlite3 is now in the system
|
|
|
|
|
|
|
|
set (SQLITE3_FOUND ON CACHE PRIVATE "")
|
|
|
|
|
|
|
|
include_directories ( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/..)
|
|
|
|
|
2017-09-19 13:19:13 +01:00
|
|
|
if (ANDROID)
|
|
|
|
add_definitions(-DSQLITE_FCNTL_MMAP_SIZE=0 )
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
2016-11-11 07:23:34 +00:00
|
|
|
add_definitions(-DSQLITE_ENABLE_COLUMN_METADATA=1 )
|
|
|
|
|
|
|
|
add_definitions(-DSQLITE_ENABLE_JSON1=1 )
|
|
|
|
|
|
|
|
add_definitions(-DSQLITE_ENABLE_RBU=1 )
|
|
|
|
|
|
|
|
add_definitions(-DSQLITE_ENABLE_RTREE=1 )
|
|
|
|
|
|
|
|
add_definitions(-DSQLITE_ENABLE_FTS5=1 )
|
|
|
|
|
2017-02-20 15:28:46 +00:00
|
|
|
SET_PROPERTY(DIRECTORY PROPERTY COMPILE_DEFINITIONS YAP_KERNEL=1 )
|
2016-11-11 07:23:34 +00:00
|
|
|
|
2016-07-31 16:02:06 +01:00
|
|
|
|
2018-02-14 00:13:13 +00:00
|
|
|
add_library( Yapsqlite3 OBJECT
|
2017-09-19 13:19:13 +01:00
|
|
|
${YAPSQLITE3_SOURCES} )
|
2016-11-11 15:53:09 +00:00
|
|
|
|
2018-02-15 00:02:44 +00:00
|
|
|
|
|
|
|
if (NOT ANDROID)
|
|
|
|
add_library( sqlite4YAP SHARED
|
|
|
|
src/sqlite3.c)
|
|
|
|
|
|
|
|
set_target_properties(sqlite4YAP
|
2017-09-19 13:19:13 +01:00
|
|
|
PROPERTIES
|
|
|
|
# RPATH ${libdir} VERSION ${LIBYAPTAI_FULL_VERSION}
|
|
|
|
# SOVERSION ${LIBYAPTAI_MAJOR_VERSION}.${LIBYAPTAI_MINOR_VERSION}
|
|
|
|
POSITION_INDEPENDENT_CODE TRUE
|
2017-11-18 00:04:42 +00:00
|
|
|
)
|
2017-07-25 01:10:44 +01:00
|
|
|
|
|
|
|
|
2018-02-15 00:02:44 +00:00
|
|
|
install(TARGETS sqlite4YAP
|
|
|
|
RUNTIME DESTINATION ${YAP_INSTALL_DLLDIR}
|
|
|
|
ARCHIVE DESTINATION ${YAP_INSTALL_DLLDIR}
|
|
|
|
LIBRARY DESTINATION ${YAP_INSTALL_DLLDIR}
|
|
|
|
)
|
|
|
|
endif()
|