50c8724322
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
32 lines
886 B
CMake
32 lines
886 B
CMake
|
|
set( YAPSQLITE3_SOURCES
|
|
myddas_sqlite3.c
|
|
)
|
|
|
|
macro_optional_find_package(Sqlite3 ON)
|
|
|
|
macro_log_feature (SQLITE3_FOUND "Sqlite3"
|
|
"Sqlite3 Data-Base "
|
|
"http://www.sqlite3ql.org" FALSE)
|
|
|
|
if (SQLITE3_FOUND)
|
|
# SQLITE3_INCLUDE_DIRECTORIES, where to find sql.h
|
|
# SQLITE3_LIBRARIES, the libraries to link against to use SQLITE3
|
|
# SQLITE3_FOUND. If false, you cannot build anything that requires Sqlite3.
|
|
add_library (Yapsqlite3 SHARED ${YAPSQLITE3_SOURCES})
|
|
add_definitions (-DMYDDAS_SQLITE3=1)
|
|
target_link_libraries(Yapsqlite3 ${SQLITE3_LIBRARIES} libYap)
|
|
include_directories (${SQLITE3_INCLUDE_DIRECTORIES} .. )
|
|
|
|
set_target_properties (Yapsqlite3 PROPERTIES
|
|
POSITION_INDEPENDENT_CODE ON
|
|
VERSION "${SO_MAJOR}.${SO_MINOR}.${SO_PATCH}"
|
|
SOVERSION ${SO_MAJOR}
|
|
)
|
|
|
|
install(TARGETS Yapsqlite3
|
|
LIBRARY DESTINATION ${libdir}
|
|
)
|
|
|
|
endif (SQLITE3_FOUND)
|