linux backport
file exists system predicate $source_file -> $user source hide and make system preds fix check_head_and_body user_expansion never fails goal expansion is controlled b dynamic procedure add must_be_of_type predicate_indicator fix neat_call, debug flag is user controlled use simplecudd, not ptoblogbdd compile all of myddas fx junk in file_name fix warnings use common file opening struct and funds avoid pairs module fix db queues
This commit is contained in:
@@ -7,20 +7,21 @@ set(SO_MAJOR 1)
|
||||
set(SO_MINOR 0)
|
||||
set(SO_PATCH 0)
|
||||
|
||||
macro_optional_find_package(POSTGRESQL ON)
|
||||
macro_optional_find_package(PostgreSQL ON)
|
||||
|
||||
macro_log_feature (POSTGRES_FOUND "postgres"
|
||||
"POSTGRES Driver for MYDDAS Data-Base Interface "
|
||||
macro_log_feature (PostgreSQL_FOUND "postgres"
|
||||
"PostgreSQL Driver for MYDDAS Data-Base Interface "
|
||||
"http://www.postgres.org" FALSE)
|
||||
|
||||
if (POSTGRES_FOUND)
|
||||
# POSTGRES_INCLUDE_DIRECTORIES, where to find sql.h
|
||||
# POSTGRES_LIBRARIES, the libraries to link against to use POSTGRES
|
||||
# POSTGRES_FOUND. If false, you cannot build anything that requires Postgres.
|
||||
if (PostgreSQL_FOUND)
|
||||
# PostgreSQL_FOUND - Set to true when PostgreSQL is found.
|
||||
# PostgreSQL_INCLUDE_DIRS - Include directories for PostgreSQL
|
||||
# PostgreSQL_LIBRARY_DIRS - Link directories for PostgreSQL libraries
|
||||
# PostgreSQL_LIBRARIES - The PostgreSQL libraries.
|
||||
add_library (Yappostgres SHARED ${YAPPOSTGRES_SOURCES})
|
||||
add_definitions (-DMYDDAS_POSTGRES=1)
|
||||
target_link_libraries(Yappostgres libYap ${POSTGRES_LIBRARIES})
|
||||
include_directories (${POSTGRES_INCLUDE_DIRECTORIES} ..)
|
||||
target_link_libraries(Yappostgres libYap ${PostgreSQL_LIBRARIES})
|
||||
include_directories (${PostgreSQL_INCLUDE_DIRS} ..)
|
||||
set_target_properties (Yappostgres PROPERTIES
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
VERSION "${SO_MAJOR}.${SO_MINOR}.${SO_PATCH}"
|
||||
@@ -31,6 +32,6 @@ if (POSTGRES_FOUND)
|
||||
LIBRARY DESTINATION ${libdir}
|
||||
)
|
||||
else()
|
||||
add_definitions (-DMYDDAS_POSTGRES=0)
|
||||
endif (POSTGRES_FOUND)
|
||||
add_definitions (-DMYDDAS_PostgreSQL=0)
|
||||
endif (PostgreSQL_FOUND)
|
||||
|
||||
|
6
packages/myddas/postgres/myddas_wkb2prolog.h
Normal file
6
packages/myddas/postgres/myddas_wkb2prolog.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef MYDDAS_WKB2PROLOG_H_
|
||||
# define MYDDAS_WKB2PROLOG_H_
|
||||
|
||||
Term wkb2prolog(char *wkb) ;
|
||||
|
||||
#endif /* !MYDDAS_WKB2PROLOG_H_ */
|
Reference in New Issue
Block a user