2015-11-05 17:06:15 +00:00
|
|
|
|
|
|
|
set( YAPSQLITE3_SOURCES
|
|
|
|
myddas_sqlite3.c
|
2016-04-05 08:09:39 +01:00
|
|
|
sqlite3.c
|
|
|
|
sqlite3.h
|
2015-11-05 17:06:15 +00:00
|
|
|
)
|
|
|
|
|
2016-08-02 01:16:39 +01:00
|
|
|
if (ANDROID)
|
2016-04-05 08:09:39 +01:00
|
|
|
set( YAPSQLITE3_ANDROID_SOURCES
|
|
|
|
Android/jni/sqlite/JNIHelp.cpp
|
|
|
|
Android/jni/sqlite/JniConstants.cpp
|
|
|
|
Android/jni/sqlite/android_database_SQLiteCommon.cpp
|
|
|
|
Android/jni/sqlite/android_database_SQLiteCommon.h
|
|
|
|
Android/jni/sqlite/android_database_SQLiteConnection.cpp
|
|
|
|
Android/jni/sqlite/android_database_SQLiteDebug.cpp
|
|
|
|
Android/jni/sqlite/android_database_SQLiteGlobal.cpp
|
2016-08-02 01:16:39 +01:00
|
|
|
)
|
|
|
|
set( YAPSQLITE3_ANDROID_DIRS
|
|
|
|
Android/jni/sqlite
|
|
|
|
Android/jni/sqlite/nativehelper
|
|
|
|
)
|
|
|
|
endif (ANDROID)
|
2016-04-05 08:09:39 +01:00
|
|
|
|
|
|
|
#sqlite3 is now in the system
|
2015-11-05 17:06:15 +00:00
|
|
|
|
2016-07-31 16:02:06 +01:00
|
|
|
set (SQLITE3_FOUND ON CACHE PRIVATE "")
|
|
|
|
message (
|
|
|
|
" * Sqlite3 Data-Base (http://www.sqlite3ql.org) is distributed with
|
|
|
|
MYDDAS" )
|
2015-11-05 17:06:15 +00:00
|
|
|
|
2016-08-01 12:54:28 +01:00
|
|
|
list (APPEND MYDDAS_FLAGS -DMYDDAS_SQLITE3=1)
|
2016-07-31 16:02:06 +01:00
|
|
|
set (MYDDAS_FLAGS ${MYDDAS_FLAGS} ON PARENT_SCOPE)
|
|
|
|
set_property(GLOBAL APPEND PROPERTY COMPILE_DEFINITIONS
|
|
|
|
-DMYDDAS_SQLITE3=1)
|
2016-04-05 08:09:39 +01:00
|
|
|
|
2016-08-02 01:16:39 +01:00
|
|
|
include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR} ${YAPSQLITE3_ANDROID_DIRS})
|
2016-08-01 12:54:28 +01:00
|
|
|
|
|
|
|
|
2016-08-02 01:16:39 +01:00
|
|
|
add_component (Yapsqlite3 ${YAPSQLITE3_SOURCES} ${YAPSQLITE3_ANDROID_SOURCES})
|
|
|
|
if (NOT ANDROID)
|
|
|
|
#target_link_libraries(Yapsqlite3 libYap)
|
2016-01-03 02:06:09 +00:00
|
|
|
set_target_properties (Yapsqlite3 PROPERTIES
|
2016-08-03 00:30:02 +01:00
|
|
|
POSITION_INDEPENDENT_CODE ON
|
2016-07-31 16:02:06 +01:00
|
|
|
PREFIX ""
|
2016-01-03 02:06:09 +00:00
|
|
|
)
|
2015-11-05 17:06:15 +00:00
|
|
|
|
2016-07-31 16:02:06 +01:00
|
|
|
# install(TARGETS Yapsqlite3
|
|
|
|
# LIBRARY DESTINATION ${dlls}
|
|
|
|
# ARCHIVE DESTINATION ${dlls}
|
|
|
|
# )
|
|
|
|
endif()
|
|
|
|
|