added shadowrun database

This commit is contained in:
2025-06-01 21:19:54 +02:00
parent 71f771b428
commit 69f7f625f8
20 changed files with 738 additions and 103 deletions

View File

@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.10)
project(CrowHTMX)
set(TARGET_NAME lf-server-admin-panel )
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -30,9 +32,12 @@ foreach(file IN LISTS TEMPLATE_FILES)
endforeach()
# Use Crow from system include (installed via yay -S crow + asio)
include_directories(/usr/include)
include_directories(/usr/include src src/htmx src/shadowrun src/database)
add_executable(lf-server-admin-panel src/main.cpp
add_executable(${TARGET_NAME}
src/main.cpp
src/utils.hpp
src/utils.cpp
src/htmx/HtmxTable.cpp
src/htmx/HtmxTable.h
src/systemd.cpp
@@ -46,9 +51,29 @@ add_executable(lf-server-admin-panel src/main.cpp
src/htmx_helper.h
src/json_settings.cpp
src/json_settings.h
src/json.hpp)
src/json.hpp
target_link_libraries(lf-server-admin-panel pthread)
src/database/database.cpp
src/database/database.hpp
# Shadowrun
src/shadowrun/HtmxShItemList.cpp
src/shadowrun/HtmxShItemList.hpp
src/shadowrun/HtmxShAttributeList.cpp
src/shadowrun/HtmxShAttributeList.hpp
src/shadowrun/HtmxShCondition.cpp
src/shadowrun/HtmxShCondition.hpp
src/shadowrun/ShadowrunCharacterForm.hpp
src/shadowrun/ShadowrunCharacterForm.cpp
src/shadowrun/ShadowrunApi.cpp
src/shadowrun/ShadowrunApi.hpp
)
target_compile_definitions(${TARGET_NAME} PRIVATE APPLICATION_NAME="${TARGET_NAME}")
target_link_libraries(${TARGET_NAME} pthread sqlite3)
# Optional: Print build type at configuration time
message(STATUS "Configuring build type: ${CMAKE_BUILD_TYPE}")