Changeset View
Changeset View
Standalone View
Standalone View
native/cpp/CommonCpp/DatabaseManagers/CMakeLists.txt
Show All 12 Lines | set(DBM_HDRS | ||||
"entities/Metadata.h" | "entities/Metadata.h" | ||||
"entities/OlmPersistAccount.h" | "entities/OlmPersistAccount.h" | ||||
"entities/OlmPersistSession.h" | "entities/OlmPersistSession.h" | ||||
"entities/Thread.h" | "entities/Thread.h" | ||||
) | ) | ||||
set(DBM_SRCS | set(DBM_SRCS | ||||
"SQLiteQueryExecutor.cpp" | "SQLiteQueryExecutor.cpp" | ||||
"DatabaseManager.cpp" | |||||
) | ) | ||||
add_library(comm-databasemanagers | add_library(comm-databasemanagers | ||||
${DBM_HDRS} | ${DBM_HDRS} | ||||
${DBM_SRCS} | ${DBM_SRCS} | ||||
) | ) | ||||
target_include_directories(comm-databasemanagers | target_include_directories(comm-databasemanagers | ||||
PUBLIC | PUBLIC | ||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> | $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> | ||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..> | $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..> | ||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../Tools> | $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../Tools> | ||||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> | $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> | ||||
# TODO: Remove once native/cpp has a CMakeLists.txt | # TODO: Remove once native/cpp has a CMakeLists.txt | ||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../third-party/sqlite_orm> | $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../third-party/sqlite_orm> | ||||
PRIVATE | PRIVATE | ||||
# HACK | # HACK | ||||
"../../../node_modules/react-native/ReactCommon/jsi" | "../../../node_modules/react-native/ReactCommon/jsi" | ||||
"../../../node_modules/olm/include" | "../../../node_modules/olm/include" | ||||
"../../../node_modules/@commapp/sqlcipher-amalgamation/src/" | |||||
) | ) | ||||
target_link_libraries(comm-databasemanagers | target_link_libraries(comm-databasemanagers | ||||
Folly::folly | Folly::folly | ||||
fbjni::fbjni | |||||
) | ) |