Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Firebird backend using patch from Sergei Nikulov
- Loading branch information
1 parent
c18cf35
commit 60c9473
Showing
6 changed files
with
84 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
soci_backend(Firebird | ||
DEPENDS Firebird | ||
HEADERS soci-firebird.h common.h | ||
DESCRIPTION "SOCI backend for Firebird database engine" | ||
AUTHORS "TBD" | ||
MAINTAINERS "TBD") | ||
|
||
add_subdirectory(test) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
soci_backend_test( | ||
BACKEND Firebird | ||
SOURCE test-firebird.cpp | ||
CONNSTR "dummy") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
set(Firebird_FIND_QUIETLY TRUE) | ||
|
||
find_package(Firebird) | ||
|
||
boost_external_report(Firebird INCLUDE_DIR LIBRARIES VERSION) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
############################################################## | ||
# Copyright (c) 2008 Daniel Pfeifer # | ||
# # | ||
# Distributed under the Boost Software License, Version 1.0. # | ||
############################################################## | ||
|
||
# This module defines | ||
# FIREBIRD_INCLUDE_DIR - where to find ibase.h | ||
# FIREBIRD_LIBRARIES - the libraries to link against to use FIREBIRD | ||
# FIREBIRD_FOUND - true if FIREBIRD was found | ||
|
||
cmake_minimum_required(VERSION 2.6) | ||
|
||
find_path(FIREBIRD_INCLUDE_DIR ibase.h | ||
/usr/include | ||
$ENV{ProgramFiles}/Firebird/*/include | ||
) | ||
|
||
find_library(FIREBIRD_LIBRARIES | ||
NAMES | ||
fbclient | ||
fbclient_ms | ||
PATHS | ||
/usr/lib | ||
$ENV{ProgramFiles}/Firebird/*/lib | ||
) | ||
|
||
# fbembed ? | ||
|
||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Firebird | ||
DEFAULT_MSG FIREBIRD_LIBRARIES FIREBIRD_INCLUDE_DIR) | ||
|
||
mark_as_advanced(FIREBIRD_INCLUDE_DIR FIREBIRD_LIBRARIES) | ||
|