File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1+ function (generate_pkg_config_file in_file)
2+ set (prefix ${CMAKE_INSTALL_PREFIX} )
3+ set (exec_prefix \${prefix} )
4+ set (libdir \${exec_prefix} /${CMAKE_INSTALL_LIBDIR} )
5+ set (includedir \${prefix} /${CMAKE_INSTALL_INCLUDEDIR} )
6+ set (PACKAGE_VERSION ${PROJECT_VERSION} )
7+ configure_file (${in_file} ${PROJECT_NAME} .pc @ONLY)
8+ endfunction ()
Original file line number Diff line number Diff line change @@ -161,5 +161,13 @@ if(SECP256K1_INSTALL)
161161 ${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME} -config.cmake
162162 ${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME} -config-version .cmake
163163 DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/${PROJECT_NAME}
164- )
164+ )
165+
166+ include (GeneratePkgConfigFile)
167+ generate_pkg_config_file(${PROJECT_SOURCE_DIR} /libsecp256k1.pc.in)
168+ install (
169+ FILES
170+ ${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME} .pc
171+ DESTINATION ${CMAKE_INSTALL_LIBDIR} /pkgconfig
172+ )
165173endif ()
You can’t perform that action at this time.
0 commit comments