From 7b78b6986e714cbd7653b89287b928974eb5ee4f Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 1 Jan 2022 13:24:33 -0600 Subject: initial commit --- CMakeLists.txt | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4e707b6 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,37 @@ +cmake_minimum_required(VERSION 3.2) +project(honeysuckle + VERSION 0.1.0 + DESCRIPTION "A zero-dependency static site generator") + +find_package(Lua51 REQUIRED) + +set(SRC_ROOT ${CMAKE_SOURCE_DIR}/src) +include_directories( + ${LUA_INCLUDE_DIR} + ${SRC_ROOT}/markdown + ${SRC_ROOT}/tinydir + ${SRC_ROOT}/honeysuckle) + +set(MD4C_SOURCES + ${SRC_ROOT}/markdown/md4c.c + ${SRC_ROOT}/markdown/md4c-html.c + ${SRC_ROOT}/markdown/entity.c) + +set(HONEYSUCKLE_SOURCES + ${SRC_ROOT}/honeysuckle/hs_create_table.c + ${SRC_ROOT}/honeysuckle/hs_parse_args.c + ${SRC_ROOT}/honeysuckle/hs_process_table.c + ${SRC_ROOT}/honeysuckle/hs_pushstring.c + ${SRC_ROOT}/honeysuckle/hs_throw_error.c + ${SRC_ROOT}/honeysuckle/hs_traceback.c + ${SRC_ROOT}/honeysuckle/hs_type_to_string.c) + +add_executable(argent + ${SRC_ROOT}/argent.c + ${SRC_ROOT}/options.c + ${MD4C_SOURCES} + ${HONEYSUCKLE_SOURCES}) +set_target_properties(argent PROPERTIES + C_STANDARD 99 + CMAKE_C_FLAGS "-Wall -Wextra -Werror -Wfatal-errors -Wpedantic") +target_link_libraries(argent ${LUA_LIBRARIES}) -- cgit v1.2.1