blob: b006aea12837101e31e8aafd1e85ec1658dc3e73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
enable_language(CXX)
add_library(foo SHARED empty.cpp)
install(TARGETS foo EXPORT fooExport
RUNTIME DESTINATION bin
LIBRARY
DESTINATION lib
COMPONENT runtime
NAMELINK_SKIP
)
install(TARGETS foo EXPORT fooExport
LIBRARY
DESTINATION lib
COMPONENT development
NAMELINK_ONLY
)
export(EXPORT fooExport FILE "${CMAKE_CURRENT_BINARY_DIR}/foo.cmake")
|