forked from Razor-qt/razor-qt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implemented Razor-qt#70: pkg-config for libs
- Loading branch information
Showing
6 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# Write a pkg-config pc file for given "name" with "decription" | ||
# Arguments: | ||
# name: a library name (withoud "lib" prefix and "so" suffixes | ||
# desc: a desription string | ||
# | ||
macro (create_pkgconfig_file name desc) | ||
set(_pkgfname "${CMAKE_CURRENT_BINARY_DIR}/${name}.pc") | ||
message(STATUS "${name}: writing pkgconfig file ${_pkgfname}") | ||
|
||
file(WRITE "${_pkgfname}" "# file generated by razor-qt cmake build | ||
prefix=${CMAKE_INSTALL_PREFIX} | ||
libdir=\${prefix}/lib${LIB_SUFFIX} | ||
includedir=\${prefix}/include | ||
Name: ${name} | ||
Description: ${desc} | ||
Version: ${RAZOR_VERSION} | ||
Libs: -L\${libdir} -l${name} | ||
Cflags: -I\${includedir} | ||
") | ||
|
||
install(FILES ${_pkgfname} DESTINATION lib${LIB_SUFFIX}/pkgconfig) | ||
endmacro() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters