Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3518653
D4492.id15433.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D4492.id15433.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 8:29 PM (1 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2696290
Default Alt Text
D4492.id15433.diff (1 KB)
Attached To
Mode
D4492: [Services] Export server-base-reactors as CMake Project
Attached
Detach File
Event Timeline
Log In to Comment