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" | |||||
"Logger.h" | |||||
"PlatformSpecificTools.h" | |||||
"WorkerThread.h" | "WorkerThread.h" | ||||
) | ) | ||||
set(TOOLS_SRCS | set(TOOLS_SRCS | ||||
"WorkerThread.cpp" | "WorkerThread.cpp" | ||||
) | ) | ||||
add_library(comm-tools | add_library(comm-tools | ||||
STATIC | |||||
${TOOLS_HDRS} | ${TOOLS_HDRS} | ||||
${TOOLS_SRCS} | ${TOOLS_SRCS} | ||||
) | ) | ||||
target_link_libraries(comm-tools | target_link_libraries(comm-tools | ||||
Folly::folly | Folly::folly | ||||
) | ) | ||||
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}> | ||||
) | ) |