summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-04-03 22:01:03 +0200
committerxengineering <me@xengineering.eu>2025-04-03 22:01:03 +0200
commita9228770da978dcf0afcc71e51e8c771b0f4455e (patch)
treeff99edd5720b4ce32562798dd5ce397c66f45ca5
parent34c0c109551c3a67bb89dcfbcd437a5ed812809f (diff)
downloadiot-contact-a9228770da978dcf0afcc71e51e8c771b0f4455e.tar
iot-contact-a9228770da978dcf0afcc71e51e8c771b0f4455e.tar.zst
iot-contact-a9228770da978dcf0afcc71e51e8c771b0f4455e.zip
web: Remove CMake
Trying meson worked so well that CMake is no longer needed.
-rw-r--r--cmake/hugo.cmake21
-rw-r--r--web/CMakeLists.txt16
2 files changed, 0 insertions, 37 deletions
diff --git a/cmake/hugo.cmake b/cmake/hugo.cmake
deleted file mode 100644
index 0180958..0000000
--- a/cmake/hugo.cmake
+++ /dev/null
@@ -1,21 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at https://mozilla.org/MPL/2.0/.
-
-function(hugo_site target source sink dependencies)
- add_custom_target(
- "${target}"
- ALL
- DEPENDS
- ${sink}
- )
-
- add_custom_command(
- OUTPUT
- ${sink}
- COMMAND
- hugo --source ${source} --destination ${sink}
- DEPENDS
- ${dependencies}
- )
-endfunction()
diff --git a/web/CMakeLists.txt b/web/CMakeLists.txt
deleted file mode 100644
index 92af0cb..0000000
--- a/web/CMakeLists.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-cmake_minimum_required(VERSION 3.10)
-
-include(hugo)
-
-set(dependencies
- hugo.toml
- layouts/baseof.html
- layouts/home.html
-)
-
-hugo_site(
- "website"
- "${CMAKE_CURRENT_SOURCE_DIR}"
- "${CMAKE_CURRENT_BINARY_DIR}/public"
- "${dependencies}"
-)