blob: 3abfb9b312b0f43e18f81813bde8b437595b3dc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b6cae16..fdc48f3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -52,3 +52,20 @@ if(WILDCARDS_CLANGFORMAT)
clangformat_setup("${clangformat_srcs}")
endif()
+
+add_library(wildcards INTERFACE)
+
+install(TARGETS wildcards
+ EXPORT unofficial-wildcards-targets
+ INCLUDES DESTINATION include)
+
+install(EXPORT unofficial-wildcards-targets
+ FILE unofficial-wildcards-config.cmake
+ NAMESPACE unofficial::wildcards::
+ DESTINATION share/unofficial-wildcards)
+
+include(GNUInstallDirs)
+install(
+ DIRECTORY include/
+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/wildcards"
+)
|