diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-09-27 00:10:16 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-09-27 21:55:48 +0200 |
| commit | 5659eb6439e19732b90650fdd41092053e1b0498 (patch) | |
| tree | be82998c8e67311e5bc3562d77c61b56e276375a /CMakeLists.txt | |
| parent | 6a72955270246168febed859116904e4c55fd699 (diff) | |
| download | libweb-5659eb6439e19732b90650fdd41092053e1b0498.tar.gz | |
Add slweb.pc
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bbe1afc..4d7646f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,12 @@ target_include_directories(${PROJECT_NAME} PUBLIC include) target_link_libraries(${PROJECT_NAME} PUBLIC dynstr) install(TARGETS ${PROJECT_NAME}) install(DIRECTORY include/slweb TYPE INCLUDE) +file(READ ${CMAKE_CURRENT_LIST_DIR}/slweb.pc slweb_pc) +string(REPLACE /usr/local ${CMAKE_INSTALL_PREFIX} slweb_repl_pc ${slweb_pc}) +file(WRITE ${CMAKE_BINARY_DIR}/slweb.pc ${slweb_repl_pc}) +include(GNUInstallDirs) +install(FILES ${CMAKE_BINARY_DIR}/slweb.pc + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) if(BUILD_EXAMPLES) add_subdirectory(examples) |
