GeneratePkgConfigFile.cmake (332B)
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()