Changeset View
Changeset View
Standalone View
Standalone View
native/cpp/CommonCpp/Tools/CMakeLists.txt
project(comm-tools) | project(comm-tools) | ||||
cmake_minimum_required(VERSION 3.4) | cmake_minimum_required(VERSION 3.4) | ||||
include(GNUInstallDirs) | include(GNUInstallDirs) | ||||
set(TOOLS_HDRS | set(TOOLS_HDRS | ||||
"CommSecureStore.h" | "CommSecureStore.h" | ||||
"Logger.h" | "Logger.h" | ||||
"PlatformSpecificTools.h" | "PlatformSpecificTools.h" | ||||
"WorkerThread.h" | "WorkerThread.h" | ||||
) | ) | ||||
set(TOOLS_SRCS | set(TOOLS_SRCS | ||||
"WorkerThread.cpp" | "WorkerThread.cpp" | ||||
# Can be moved to local directory in https://linear.app/comm/issue/ENG-2996 | |||||
${_android_cpp_source_dir}/CommSecureStore.cpp | |||||
${_android_cpp_source_dir}/Logger.cpp | |||||
${_android_cpp_source_dir}/PlatformSpecificTools.cpp | |||||
) | ) | ||||
add_library(comm-tools | add_library(comm-tools | ||||
SHARED | |||||
${TOOLS_HDRS} | ${TOOLS_HDRS} | ||||
${TOOLS_SRCS} | ${TOOLS_SRCS} | ||||
) | ) | ||||
target_link_libraries(comm-tools | target_link_libraries(comm-tools | ||||
fbjni::fbjni | |||||
Folly::folly | Folly::folly | ||||
Olm::Olm | |||||
${log-lib} | |||||
) | ) | ||||
target_include_directories(comm-tools | target_include_directories(comm-tools | ||||
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}> | ||||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> | $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> | ||||
) | ) |