2017-08-10 06:56:00 -05:00
|
|
|
# CMakeLists.txt for libgnucash/backend/dbi
|
2010-03-27 15:27:10 -05:00
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
add_subdirectory(test)
|
2010-03-27 15:27:10 -05:00
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
set (backend_sql_SOURCES
|
2015-12-01 11:38:14 -06:00
|
|
|
gnc-account-sql.cpp
|
|
|
|
gnc-address-sql.cpp
|
|
|
|
gnc-bill-term-sql.cpp
|
|
|
|
gnc-book-sql.cpp
|
|
|
|
gnc-budget-sql.cpp
|
|
|
|
gnc-commodity-sql.cpp
|
|
|
|
gnc-customer-sql.cpp
|
|
|
|
gnc-employee-sql.cpp
|
|
|
|
gnc-entry-sql.cpp
|
|
|
|
gnc-invoice-sql.cpp
|
|
|
|
gnc-job-sql.cpp
|
|
|
|
gnc-lots-sql.cpp
|
|
|
|
gnc-order-sql.cpp
|
|
|
|
gnc-owner-sql.cpp
|
|
|
|
gnc-price-sql.cpp
|
|
|
|
gnc-recurrence-sql.cpp
|
|
|
|
gnc-schedxaction-sql.cpp
|
2015-06-13 17:33:03 -05:00
|
|
|
gnc-slots-sql.cpp
|
2015-12-01 11:38:14 -06:00
|
|
|
gnc-tax-table-sql.cpp
|
|
|
|
gnc-transaction-sql.cpp
|
|
|
|
gnc-vendor-sql.cpp
|
2016-11-01 13:58:21 -05:00
|
|
|
gnc-sql-backend.cpp
|
|
|
|
gnc-sql-result.cpp
|
|
|
|
gnc-sql-column-table-entry.cpp
|
|
|
|
gnc-sql-object-backend.cpp
|
2015-12-01 11:38:14 -06:00
|
|
|
escape.cpp
|
2010-03-27 15:27:10 -05:00
|
|
|
)
|
2018-05-03 16:18:15 -05:00
|
|
|
set (backend_sql_noinst_HEADERS
|
2010-03-27 15:27:10 -05:00
|
|
|
gnc-account-sql.h
|
2010-07-14 14:39:19 -05:00
|
|
|
gnc-bill-term-sql.h
|
2010-03-27 15:27:10 -05:00
|
|
|
gnc-book-sql.h
|
|
|
|
gnc-budget-sql.h
|
|
|
|
gnc-commodity-sql.h
|
2010-07-14 14:39:19 -05:00
|
|
|
gnc-customer-sql.h
|
|
|
|
gnc-employee-sql.h
|
|
|
|
gnc-entry-sql.h
|
|
|
|
gnc-invoice-sql.h
|
|
|
|
gnc-job-sql.h
|
2010-03-27 15:27:10 -05:00
|
|
|
gnc-lots-sql.h
|
2010-07-14 14:39:19 -05:00
|
|
|
gnc-order-sql.h
|
2010-03-27 15:27:10 -05:00
|
|
|
gnc-price-sql.h
|
|
|
|
gnc-recurrence-sql.h
|
|
|
|
gnc-schedxaction-sql.h
|
|
|
|
gnc-slots-sql.h
|
2010-07-14 14:39:19 -05:00
|
|
|
gnc-tax-table-sql.h
|
2010-03-27 15:27:10 -05:00
|
|
|
gnc-transaction-sql.h
|
2010-07-14 14:39:19 -05:00
|
|
|
gnc-vendor-sql.h
|
2016-11-01 13:58:21 -05:00
|
|
|
gnc-sql-backend.hpp
|
|
|
|
gnc-sql-connection.hpp
|
|
|
|
gnc-sql-result.hpp
|
|
|
|
gnc-sql-column-table-entry.hpp
|
|
|
|
gnc-sql-object-backend.hpp
|
2010-03-27 15:27:10 -05:00
|
|
|
escape.h
|
|
|
|
)
|
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
set_local_dist(backend_sql_DIST_local ${backend_sql_SOURCES} ${backend_sql_noinst_HEADERS} CMakeLists.txt )
|
|
|
|
set(backend_sql_DIST ${backend_sql_DIST_local} ${test_backend_sql_DIST} PARENT_SCOPE)
|
2017-02-01 21:48:46 -06:00
|
|
|
|
2010-03-27 15:27:10 -05:00
|
|
|
# Add dependency on config.h
|
2018-05-03 16:18:15 -05:00
|
|
|
set_source_files_properties (${gnc_backend_sql_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
|
|
|
|
if(WITH_SQL)
|
|
|
|
add_library (gnc-backend-sql
|
2017-12-02 17:59:40 -06:00
|
|
|
${backend_sql_SOURCES}
|
|
|
|
${backend_sql_noinst_HEADERS}
|
2017-12-17 15:00:00 -06:00
|
|
|
)
|
2010-03-27 15:27:10 -05:00
|
|
|
|
2019-11-24 11:30:33 -06:00
|
|
|
target_link_libraries(gnc-backend-sql gnc-engine)
|
2015-12-07 11:17:08 -06:00
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
target_compile_definitions (gnc-backend-sql PRIVATE -DG_LOG_DOMAIN=\"gnc.backend.sql\")
|
2015-12-07 11:17:08 -06:00
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
target_include_directories(gnc-backend-sql PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
2015-12-07 11:17:08 -06:00
|
|
|
|
2018-05-03 16:18:15 -05:00
|
|
|
install(TARGETS gnc-backend-sql
|
2017-12-17 15:00:00 -06:00
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2015-12-07 11:17:08 -06:00
|
|
|
|
2017-12-17 15:00:00 -06:00
|
|
|
# No headers to install
|
2020-01-30 05:20:25 -06:00
|
|
|
endif()
|