aboutsummaryrefslogtreecommitdiff
path: root/src/secp256k1/cmake/GeneratePkgConfigFile.cmake
blob: 9c1d7f1ddd6b91c2c164d72f4749c4f212bee391 (plain)
1
2
3
4
5
6
7
8
function(generate_pkg_config_file in_file)
  set(prefix ${CMAKE_INSTALL_PREFIX})
  set(exec_prefix \${prefix})
  set(libdir \${exec_prefix}/${CMAKE_INSTALL_LIBDIR})
  set(includedir \${prefix}/${CMAKE_INSTALL_INCLUDEDIR})
  set(PACKAGE_VERSION ${PROJECT_VERSION})
  configure_file(${in_file} ${PROJECT_NAME}.pc @ONLY)
endfunction()