This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/myddas/sqlite3/CMakeLists.txt

51 lines
1.5 KiB
CMake
Raw Normal View History

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-04-05 08:09:39 +01:00
set( YAPSQLITE3_ANDROID_SOURCES
Android/jni/sqlite/ALog-priv.h
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
Android/jni/sqlite/nativehelper/JNIHelp.h
Android/jni/sqlite/nativehelper/JniConstants.h
Android/jni/sqlite/nativehelper/ScopedLocalRef.h
Android/jni/sqlite/nativehelper/jni.h
)
#sqlite3 is now in the system
2015-11-05 17:06:15 +00:00
2016-04-05 08:09:39 +01:00
set (SQLITE3_FOUND ON PARENT_SCOPE)
2015-11-05 17:06:15 +00:00
macro_log_feature (SQLITE3_FOUND "Sqlite3"
"Sqlite3 Data-Base "
"http://www.sqlite3ql.org" FALSE)
2016-04-05 08:09:39 +01:00
include_directories (${SQLITE3_INCLUDE_DIRECTORIES} .. . Android/jni/sqlite Android/jni/sqlite/nativehelper)
set (MYDDAS_FLAGS ${MYDDAS_FLAGS} -DMYDDAS_SQLITE3=1 PARENT_SCOPE)
set_property( DIRECTORY .. APPEND PROPERTY COMPILE_DEFINITIONS MYDDAS_SQLITE3=1 )
2016-04-05 23:56:25 +01:00
if (YAP_SINGLE_FILE)
2016-04-05 08:09:39 +01:00
add_library (Yapsqlite3 OBJECT ${YAPSQLITE3_SOURCES} ${YAPSQLITE3_ANDROID_SOURCES})
2016-04-05 23:56:25 +01:00
else(YAP_SINGLE_FILE)
2016-04-05 08:09:39 +01:00
add_library (Yapsqlite3 SHARED ${YAPSQLITE3_SOURCES})
target_link_libraries(Yapsqlite3 libYap)
2016-01-03 02:06:09 +00:00
set_target_properties (Yapsqlite3 PROPERTIES
2015-11-05 17:06:15 +00:00
VERSION "${SO_MAJOR}.${SO_MINOR}.${SO_PATCH}"
SOVERSION ${SO_MAJOR}
2016-01-03 02:06:09 +00:00
)
2015-11-05 17:06:15 +00:00
install(TARGETS Yapsqlite3
LIBRARY DESTINATION ${libdir}
2016-01-20 22:25:25 +00:00
ARCHIVE DESTINATION ${libdir}
)
2016-04-05 23:56:25 +01:00
endif(YAP_SINGLE_FILE)