mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2024-12-27 21:35:41 +00:00
King_DuckZ
9fff9d793c
New code tries to guess a per-visitor IP address and uses that (or its hash) to tell users apart. This patch also adds a TAWASHI_WITH_IP_LOGGING cmake option to enable or disable logging the IP address of your visitors in various places (just one right now but don't assume things to remain this way). Also added a couple new CGI environment variables.
35 lines
1.2 KiB
CMake
35 lines
1.2 KiB
CMake
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
|
|
list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
|
|
project(tawashi_top VERSION 0.1.11 LANGUAGES NONE)
|
|
|
|
include(CTest)
|
|
|
|
option(TAWASHI_WITH_IP_LOGGING "Enable code in Tawashi that may result in users IPs being stored in the DB or in logs" ON)
|
|
|
|
set(INCREDIS_FORCE_DISABLE_TESTS ON)
|
|
set(TAWASHI_SOURCE_ROOT "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
set(TAWASHI_GEN_INCLUDE_DIR "${CMAKE_CURRENT_BINARY_DIR}/include")
|
|
set(TAWASHI_CONFIG_PATH "etc" CACHE STRING "Path where config file will be located, absolute or relative to the install prefix")
|
|
set(TAWASHI_CONFIG_FILE "tawashi.ini" CACHE STRING "Filename of the config file in TAWASHI_CONFIG_PATH")
|
|
|
|
configure_file(
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/src/tawashiConfig.h.in"
|
|
"${TAWASHI_GEN_INCLUDE_DIR}/tawashiConfig.h"
|
|
)
|
|
configure_file(
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/config/debug_tawashi.ini.in"
|
|
"${CMAKE_CURRENT_BINARY_DIR}/tawashi.ini"
|
|
)
|
|
|
|
add_subdirectory(lib/incredis)
|
|
add_subdirectory(lib/mstch)
|
|
add_subdirectory(lib/houdini)
|
|
add_subdirectory(src/tawashi_implem)
|
|
add_subdirectory(src/tawashi)
|
|
|
|
install(DIRECTORY html/website/ DESTINATION html)
|
|
|
|
if (BUILD_TESTING)
|
|
add_subdirectory(test/unit)
|
|
add_subdirectory(test/simulation)
|
|
endif()
|