Page MenuHomePhabricator

D4492.id15368.diff
No OneTemporary

D4492.id15368.diff

diff --git a/services/lib/src/server-base-reactors/CMakeLists.txt b/services/lib/src/server-base-reactors/CMakeLists.txt
new file mode 100644
--- /dev/null
+++ b/services/lib/src/server-base-reactors/CMakeLists.txt
@@ -0,0 +1,42 @@
+project(comm-server-base-reactors CXX C)
+cmake_minimum_required(VERSION 3.10)
+
+include(GNUInstallDirs)
+
+file(GLOB SERVER_HDRS
+ ${CMAKE_CURRENT_SOURCE_DIR}/*.h
+)
+
+add_library(comm-server-base-reactors
+ INTERFACE # There's nothing to "build" with headers, so just export them
+)
+
+target_include_directories(comm-server-base-reactors
+ INTERFACE
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
+)
+
+install(TARGETS comm-server-base-reactors
+ EXPORT comm-server-base-reactors-export
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ COMPONENT comm-server-base-reactors
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ COMPONENT comm-server-base-reactors
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ COMPONENT comm-server-base-reactors
+)
+
+install(FILES ${COMMON_HDRS} DESTINATION include)
+
+set(_pname ${PROJECT_NAME})
+export(TARGETS comm-server-base-reactors
+ NAMESPACE comm-server-base-reactors::
+ FILE ${CMAKE_CURRENT_BINARY_DIR}/cmake/${_pname}/${_pname}-targets.cmake
+)
+
+install(EXPORT comm-server-base-reactors-export
+ FILE comm-server-base-reactors-targets.cmake
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/comm-server-base-reactors
+ NAMESPACE comm-server-base-reactors::
+)

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 3:31 AM (8 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2696290
Default Alt Text
D4492.id15368.diff (1 KB)

Event Timeline