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

53 lines
1.4 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-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
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)
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
PREFIX ""
2016-01-03 02:06:09 +00:00
)
2015-11-05 17:06:15 +00:00
# install(TARGETS Yapsqlite3
# LIBRARY DESTINATION ${dlls}
# ARCHIVE DESTINATION ${dlls}
# )
endif()