1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-29 01:33:46 +00:00

Change the generated create_tables_query from c to cpp.

This commit is contained in:
King_DuckZ 2017-09-29 20:26:06 +01:00
parent f179d1fac5
commit d72c80e112
5 changed files with 28 additions and 4 deletions

@ -1 +1 @@
Subproject commit 38719ba8f513611232cd300ed4614c047391b956
Subproject commit 07053fcc0bd6c5aa05e51f08ad3eae2e8d4befc8

View file

@ -1,4 +1,4 @@
project(${bare_name}-backend-postgresql CXX C)
project(${bare_name}-backend-postgresql CXX)
find_package(ZLIB)
@ -12,6 +12,7 @@ endif()
make_binary_resource(${gzip}
INPUT ${CMAKE_BINARY_DIR}/dindexer.sql
ARRAY_NAME create_tables_query
EXTENSION .cpp
)
add_library(${PROJECT_NAME} SHARED
@ -21,7 +22,7 @@ add_library(${PROJECT_NAME} SHARED
scan.cpp
navigate.cpp
backend_postgresql.cpp
${CMAKE_CURRENT_BINARY_DIR}/create_tables_query.c
${CMAKE_CURRENT_BINARY_DIR}/create_tables_query.cpp
create_tables.cpp
)

View file

@ -0,0 +1,23 @@
/* Copyright 2015, 2016, Michele Santullo
* This file is part of "dindexer".
*
* "dindexer" 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.
*
* "dindexer" 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 "dindexer". If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef id119764EBCC3345668A406E9A8FC1B6C7
#define id119764EBCC3345668A406E9A8FC1B6C7
#cmakedefine ZLIB_FOUND
#endif

View file

@ -16,7 +16,7 @@
*/
#include "create_tables.hpp"
#include "create_tables_query.h"
#include "create_tables_query.hpp"
#include "pq/connection.hpp"
#include "backend_postgresql_config.h"
#if defined(ZLIB_FOUND)