diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2014-12-04 10:49:08 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2014-12-04 10:49:08 -0800 |
commit | b2befa48e38a9738c97501e180d1296e3323b4a9 (patch) | |
tree | 59db5b80c87b6f2908d3b33cc4a71c636388a5c8 | |
parent | cfb756f918aad3ef7714f75a06210e564ecb90f9 (diff) |
Create pkg-config file as part of build procedure.
Closes #234.
-rw-r--r-- | src/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/libcmark.pc.in | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e0fc66e..d9af586 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -60,6 +60,11 @@ else(MSVC) ${CMAKE_CURRENT_SOURCE_DIR}/scanners.re ) endif(MSVC) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libcmark.pc.in + ${CMAKE_CURRENT_BINARY_DIR}/libcmark.pc @ONLY) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libcmark.pc + DESTINATION lib/pkgconfig) + include (GenerateExportHeader) add_executable(${PROGRAM} ${PROGRAM_SOURCES}) diff --git a/src/libcmark.pc.in b/src/libcmark.pc.in new file mode 100644 index 0000000..9c3a9a9 --- /dev/null +++ b/src/libcmark.pc.in @@ -0,0 +1,10 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=@CMAKE_INSTALL_PREFIX@ +libdir=@CMAKE_INSTALL_PREFIX@/lib +includedir=@CMAKE_INSTALL_PREFIX@/include + +Name: libcmark +Description: CommonMark parsing, rendering, and manipulation +Version: @PROJECT_VERSION@ +Libs: -L${libdir} -lcmark +Cflags: -I${includedir} |