diff options
| -rw-r--r-- | CMakeLists.txt | 1 | ||||
| -rw-r--r-- | cmake/hugo.cmake | 21 | ||||
| -rw-r--r-- | web/CMakeLists.txt | 16 | 
3 files changed, 0 insertions, 38 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 90eac62..a21c5d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,4 +6,3 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})  add_subdirectory(fw)  add_subdirectory(pcb) -add_subdirectory(web) 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}" -)  | 
