File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -96,13 +96,22 @@ if(CEREAL_INSTALL)
96
96
else ()
97
97
write_basic_package_version_file ("${versionFile} " COMPATIBILITY SameMajorVersion )
98
98
endif ()
99
+ configure_file (
100
+ ${CMAKE_CURRENT_SOURCE_DIR} /${PROJECT_NAME}.pc.in
101
+ ${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME}.pc
102
+ @ONLY
103
+ )
99
104
100
105
install (FILES ${configFile} ${versionFile} DESTINATION ${configInstallDestination} )
101
106
install (
102
107
EXPORT ${PROJECT_NAME} Targets
103
108
NAMESPACE "cereal::"
104
109
DESTINATION ${configInstallDestination}
105
110
)
111
+ install (
112
+ FILES ${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME}.pc
113
+ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR} /pkgconfig
114
+ )
106
115
endif ()
107
116
108
117
Original file line number Diff line number Diff line change
1
+ prefix=@CMAKE_INSTALL_PREFIX@
2
+ includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
3
+
4
+ Name: @PROJECT_NAME@
5
+ Description: cereal is a header-only C++11 serialization library
6
+ URL: https://uscilab.github.io/cereal/
7
+ Version: @PROJECT_VERSION@
8
+ Cflags: -I"${includedir}"
You can’t perform that action at this time.
0 commit comments