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) | ||||
find_package(Folly REQUIRED) | |||||
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 | ||||
Show All 10 Lines | |||||
) | ) | ||||
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}> | ||||
) | ) | ||||
install(TARGETS comm-tools EXPORT comm-tools-export | |||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT comm-tools | |||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT comm-tools | |||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT comm-tools | |||||
) | |||||
install(FILES ${TOOLS_HDRS} DESTINATION include/Tools) | |||||
export(TARGETS comm-tools | |||||
NAMESPACE comm-tools:: | |||||
FILE ${CMAKE_CURRENT_BINARY_DIR}/cmake/comm-tools/comm-tools-targets.cmake | |||||
) | |||||
# For installation | |||||
install(EXPORT comm-tools-export | |||||
FILE comm-tools-targets.cmake | |||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/comm-tool | |||||
NAMESPACE comm-tools:: | |||||
) |