mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-01 19:17:59 +00:00
* Cleanup cmake Root CMakeLists.txt
* Cleanup cmake targets
* Add find openssl modul for older cmake version
* set proper scope
* Switch off make based builds in travis and appveyor
* Fix build break, set C11 on c file
* Set from C11 to C99
* Fix NetSSL win build
* Set C99 compile features
* Fix Windows build
* Fix windows build
* Revert "Fix windows build"
This reverts commit 678d44216bd964f61655df809efbf63ddd8a7bfd.
* Cleanup poco unbundle definition
* Fix PDF build
* Remove unused set affinity
* Add _AFXDLL as target compile definitions
* Refactor add_definitions to target_compile_definitons in Util
* Refactor add_definitions to target_compile_definitons in XML
* Remove THREADSAFE in data sql cmake build
* Refactor add_definitions to target_compile_definition in cmake mysql
* Refactor add_definitions to target_compile_definition in cmake odbc
* Refactor add_definitions to target_compile_definition in cmake sqlite
* Refactor add_definitions to target_compile_definitions in platform specific cmake
* Add _DEBUG as compile definition
* Add build dependencies between Foundation-testrunner and TestApp, TestLibrary in cmake build
* cleanup LIB_MODE_DEFINITIONS in cmake buld system
* Fix broken merge
* Fix android foundation test
* Fix old redis build version
* Fix android fondation test
* Cleanup target link libraries.
* Update cmake documentation
* Some fixese in crypto and netssl for win and some cleanup an SQL
* Minor fix in root CMakeList.txt
* Squashed commit of the following:
commit df050b56b6d81eaf9bdb37bb016fe9a3554eba4f
Fix build dependecies in cmake
* Squashed commit of the following:
commit f41ce2bb404e197ff04b1e64f7b66c9a2b1e03c8
Fix PostgreSQL build
* Squashed commit of the following:
commit b7da0deed67ffff23a8b7a50d6deff1e022b2577
Set db hostnames
* Update doc
* Update cmake build commands
* Set public on target link libraries in cmake build
* Fix broken cppunit merge
65 lines
1.6 KiB
CMake
65 lines
1.6 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()
|
|
|
|
add_library(SQLSQLite ${SQLITE_SRCS} )
|
|
add_library(Poco::SQLSQLite ALIAS SQLSQLite)
|
|
set_target_properties(SQLSQLite
|
|
PROPERTIES
|
|
VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION}
|
|
OUTPUT_NAME PocoSQLSQLite
|
|
DEFINE_SYMBOL SQLite_EXPORTS
|
|
)
|
|
|
|
target_link_libraries(SQLSQLite PUBLIC Poco::SQL ${SQLITE3_LIBRARIES}) # TODO(BJoe) Use namespace target
|
|
target_include_directories(SQLSQLite
|
|
PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
|
$<INSTALL_INTERFACE:include>
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
)
|
|
|
|
if(POCO_UNBUNDLED)
|
|
target_include_directories(SQLSQLite PUBLIC "${SQLITE3_INCLUDE_DIRS}")
|
|
target_compile_definitions(SQLSQLite PUBLIC POCO_UNBUNDLED)
|
|
else()
|
|
if(WINCE)
|
|
target_compile_definitions(SQLSQLite PRIVATE SQLITE_MSVC_LOCALTIME_API)
|
|
endif(WINCE)
|
|
target_compile_definitions(SQLSQLite 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(SQLSQLite)
|
|
POCO_GENERATE_PACKAGE(SQLSQLite)
|
|
|
|
if (POCO_ENABLE_TESTS)
|
|
add_subdirectory(testsuite)
|
|
endif ()
|
|
|