mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-10 08:00:54 +01:00
![Kari Argillander](/assets/img/avatar_default.png)
* Remove _WIN32_WCE macro Poco now use C++17 and Windows CE does not support it and VS2017 does also not support it so we can just remove Windows CE code. First remove all macro usages from our own files. * Remove WinCE support from build files Poco now use C++17 and Windows CE does not support it and VS2017 does also not support it so we can just remove Windows CE code. Remove all references from build systems / scripts. * Remove Windows CE related source and header files Poco now use C++17 and Windows CE does not support it and VS2017 does also not support it so we can just remove Windows CE code. First remove all macro usages from our own files. * Remove wcelibcex folder Poco now use C++17 and Windows CE does not support it and VS2017 does also not support it so we can just remove Windows CE code. First remove all macro usages from our own files. * Remove rest Windows CE mentions There where some Windows CE mentions left. Remove those. * Update Windows CE documentation We should keep documentation some time so people can find reason for remove. --------- Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
69 lines
1.5 KiB
CMake
69 lines
1.5 KiB
CMake
# Sources
|
|
file(GLOB SRCS_G "src/*.cpp")
|
|
POCO_SOURCES_AUTO(SQLITE_SRCS ${SRCS_G})
|
|
|
|
# Headers
|
|
file(GLOB_RECURSE HDRS_G "include/*.h")
|
|
POCO_HEADERS_AUTO(SQLITE_SRCS ${HDRS_G})
|
|
|
|
if(POCO_UNBUNDLED)
|
|
find_package(SQLite3 REQUIRED)
|
|
else()
|
|
# sqlite3
|
|
POCO_SOURCES(SQLITE_SRCS sqlite3
|
|
src/sqlite3.c
|
|
)
|
|
|
|
POCO_HEADERS(SQLITE_SRCS sqlite3
|
|
src/sqlite3.h
|
|
)
|
|
endif()
|
|
|
|
# Version Resource
|
|
if(MSVC AND BUILD_SHARED_LIBS)
|
|
source_group("Resources" FILES ${PROJECT_SOURCE_DIR}/DLLVersion.rc)
|
|
list(APPEND SQLITE_SRCS ${PROJECT_SOURCE_DIR}/DLLVersion.rc)
|
|
endif()
|
|
|
|
add_library(DataSQLite ${SQLITE_SRCS})
|
|
|
|
add_library(Poco::DataSQLite ALIAS DataSQLite)
|
|
set_target_properties(DataSQLite
|
|
PROPERTIES
|
|
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION}
|
|
OUTPUT_NAME PocoDataSQLite
|
|
DEFINE_SYMBOL SQLite_EXPORTS
|
|
)
|
|
target_link_libraries(DataSQLite PUBLIC Poco::Data)
|
|
target_include_directories(DataSQLite
|
|
PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
|
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
)
|
|
|
|
if(POCO_UNBUNDLED)
|
|
target_link_libraries(DataSQLite PUBLIC SQLite::SQLite3)
|
|
target_compile_definitions(DataSQLite PUBLIC
|
|
POCO_UNBUNDLED
|
|
SQLITE_THREADSAFE=1
|
|
)
|
|
else()
|
|
target_compile_definitions(DataSQLite PRIVATE
|
|
SQLITE_THREADSAFE=1
|
|
SQLITE_DISABLE_LFS
|
|
SQLITE_OMIT_UTF16
|
|
SQLITE_OMIT_PROGRESS_CALLBACK
|
|
SQLITE_OMIT_COMPLETE
|
|
SQLITE_OMIT_TCL_VARIABLE
|
|
SQLITE_OMIT_DEPRECATED
|
|
)
|
|
endif()
|
|
|
|
POCO_INSTALL(DataSQLite)
|
|
POCO_GENERATE_PACKAGE(DataSQLite)
|
|
|
|
if(ENABLE_TESTS)
|
|
add_subdirectory(testsuite)
|
|
endif()
|