2017-04-04 19:58:40 +00:00
|
|
|
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
|
2017-04-07 22:57:32 +00:00
|
|
|
list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
|
2017-05-04 18:52:18 +00:00
|
|
|
project(tawashi_top VERSION 0.1.3 LANGUAGES NONE)
|
2017-04-04 19:58:40 +00:00
|
|
|
|
2017-05-04 22:03:53 +00:00
|
|
|
include(CTest)
|
|
|
|
|
|
|
|
set(INCREDIS_FORCE_DISABLE_TESTS ON)
|
2017-04-15 02:18:33 +00:00
|
|
|
set(TAWASHI_SOURCE_ROOT "${CMAKE_CURRENT_SOURCE_DIR}")
|
2017-05-04 18:52:18 +00:00
|
|
|
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 "${PROJECT_NAME}.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"
|
|
|
|
)
|
2017-04-04 19:58:40 +00:00
|
|
|
|
|
|
|
add_subdirectory(lib/incredis)
|
2017-04-18 17:40:42 +00:00
|
|
|
add_subdirectory(lib/mstch)
|
2017-04-25 17:56:41 +00:00
|
|
|
add_subdirectory(lib/houdini)
|
2017-05-04 18:52:18 +00:00
|
|
|
add_subdirectory(src/tawashi_implem)
|
|
|
|
add_subdirectory(src/tawashi)
|
2017-04-26 19:52:52 +00:00
|
|
|
|
|
|
|
install(DIRECTORY html DESTINATION .)
|
2017-05-04 22:03:53 +00:00
|
|
|
|
|
|
|
if (BUILD_TESTING)
|
|
|
|
add_subdirectory(test/unit)
|
|
|
|
endif()
|