File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,15 @@ install(
229229 DESTINATION ${ConfigPackageLocation}
230230)
231231
232+ # Generate pkg-config file
233+ configure_file (
234+ "${CMAKE_CURRENT_SOURCE_DIR} /cmake/sjpeg.pc.in"
235+ "${CMAKE_CURRENT_BINARY_DIR} /sjpeg.pc"
236+ @ONLY
237+ )
238+
239+ install (FILES "${CMAKE_CURRENT_BINARY_DIR} /sjpeg.pc"
240+ DESTINATION lib/pkgconfig)
232241
233242################################################################################
234243# Man page.
Original file line number Diff line number Diff line change 1+ prefix=@CMAKE_INSTALL_PREFIX@
2+ exec_prefix=${prefix}
3+ libdir=${exec_prefix}/lib
4+ includedir=${exec_prefix}/include
5+
6+ Name: sjpeg
7+ Description: Lightweight JPEG encoder with simple C API and optional C++ interface
8+ Version: @PROJECT_VERSION@
9+
10+ Requires: libjpeg libpng
11+ Requires.private:
12+
13+ Libs: -L${libdir} -lsjpeg -ljpeg -lpng
14+ Libs.private:
15+
16+ Cflags: -I${includedir}
17+ Cflags.private:
You can’t perform that action at this time.
0 commit comments