1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-12-27 21:35:41 +00:00

Add tawashiConfig.h.in with default paths.

This commit is contained in:
King_DuckZ 2017-04-11 08:30:22 +01:00
parent f331113be8
commit aef2210f6d
3 changed files with 38 additions and 0 deletions

View file

@ -7,6 +7,9 @@ find_package(SourceHighlight REQUIRED)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(TAWASHI_CONFIG_PATH "etc")
set(TAWASHI_CONFIG_FILE "${PROJECT_NAME}.ini")
add_executable(${PROJECT_NAME}
main.cpp
split_get_vars.cpp
@ -23,6 +26,14 @@ add_executable(${PROJECT_NAME}
ini_file.cpp
)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}Config.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/include/${PROJECT_NAME}Config.h"
)
target_include_directories(${PROJECT_NAME}
PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/include
)
target_include_directories(${PROJECT_NAME} SYSTEM
PRIVATE ${Boost_INCLUDE_DIRS}
PRIVATE ${TAWASHI_SOURCE_ROOT}/lib/bette-enums
@ -38,3 +49,7 @@ target_link_libraries(${PROJECT_NAME}
target_compile_definitions(${PROJECT_NAME}
PRIVATE BOOST_SPIRIT_USE_PHOENIX_V3=1
)
target_compile_options(${PROJECT_NAME}
PRIVATE -fdiagnostics-color=always
)

View file

@ -16,6 +16,7 @@
*/
#include "incredis/incredis.hpp"
#include "tawashiConfig.h"
#include "submit_paste_response.hpp"
#include "pastie_response.hpp"
#include "index_response.hpp"

22
src/tawashiConfig.h.in Normal file
View file

@ -0,0 +1,22 @@
/* Copyright 2017, Michele Santullo
* This file is part of "tawashi".
*
* "tawashi" is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* "tawashi" is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with "tawashi". If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#define TAWASHI_CONFIG_PATH "@TAWASHI_CONFIG_PATH@"
#define TAWASHI_CONFIG_FILE "@TAWASHI_CONFIG_FILE@"
#define TAWASHI_PATH_PREFIX "@CMAKE_INSTALL_PREFIX@"