blob: cac4ff2adc3d4c98c8138abec13dd56f53fc3191 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
enable_language(C)
add_library(foo STATIC empty.c)
install(TARGETS foo
EXPORT pkg1
ARCHIVE DESTINATION pkg1/lib
INCLUDES DESTINATION pkg1/inc
)
install(EXPORT pkg1 DESTINATION pkg1)
install(TARGETS foo
EXPORT pkg2
ARCHIVE DESTINATION pkg2/lib
INCLUDES DESTINATION pkg2/inc
)
install(EXPORT pkg2 DESTINATION pkg2)
|