-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstring19.cmake
More file actions
33 lines (30 loc) · 876 Bytes
/
string19.cmake
File metadata and controls
33 lines (30 loc) · 876 Bytes
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
26
27
28
29
30
31
32
33
add_library(string19 INTERFACE)
target_link_libraries(string19
INTERFACE CoCpp19::tuple19
)
target_include_directories(string19
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
file(GLOB string19_headers "${CMAKE_CURRENT_LIST_DIR}/*.h")
target_sources(string19
INTERFACE FILE_SET public_headers
TYPE HEADERS
FILES ${string19_headers}
)
add_library(CoCpp19::string19 ALIAS string19)
if(COCPP_Install)
install(TARGETS string19
EXPORT string19Targets
FILE_SET public_headers
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
COMPONENT "string19"
)
install(EXPORT string19Targets
FILE "CoCpp19-string19-targets.cmake"
NAMESPACE "CoCpp19::"
DESTINATION ${COCPP19_CMAKE_CONFIG_DESTINATION}
COMPONENT "string19"
)
endif()