aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-10-10 23:21:35 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-10-11 00:07:13 +0200
commit0222b75e8554796548e079aa3393c512ae30ac24 (patch)
tree5a154258ae5c1434a211ee67537e46ef64058437 /CMakeLists.txt
parent832e198f8c77970b5b923eb18201ba83d9c72b80 (diff)
downloadlibweb-0222b75e8554796548e079aa3393c512ae30ac24.tar.gz
Rename project from slweb to libwebv0.1.0-rc3
It was found out there was another project of the same name around (https://git.sr.ht/~strahinja/slweb/), also related to website generation. In order to avoid confusion, a new name has been chosen for this project. Surprisingly, libweb was not in use by any distributions (according to https://repology.org and AUR index), and it should reflect well the intention behind this project i.e., being a library to build web-related stuff.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 41d2c8c..1a8bf44 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.13.5)
option(BUILD_EXAMPLES "Build examples" ON)
-project(slweb C)
+project(web C)
add_library(${PROJECT_NAME}
handler.c
html.c
@@ -11,12 +11,12 @@ add_subdirectory(dynstr)
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})
+install(DIRECTORY include/libweb TYPE INCLUDE)
+file(READ ${CMAKE_CURRENT_LIST_DIR}/libweb.pc libweb_pc)
+string(REPLACE /usr/local ${CMAKE_INSTALL_PREFIX} libweb_repl_pc ${libweb_pc})
+file(WRITE ${CMAKE_BINARY_DIR}/libweb.pc ${libweb_repl_pc})
include(GNUInstallDirs)
-install(FILES ${CMAKE_BINARY_DIR}/slweb.pc
+install(FILES ${CMAKE_BINARY_DIR}/libweb.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
add_subdirectory(doc)