mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-01 21:19:16 -06:00
83d14e1c1c
It is split into - /libgnucash (for the non-gui bits) - /gnucash (for the gui) - /common (misc source files used by both) - /bindings (currently only holds python bindings) This is the first step in restructuring the code. It will need much more fine tuning later on.
84 lines
2.0 KiB
CMake
84 lines
2.0 KiB
CMake
# CMakeLists.txt for libgnucash/backend/dbi
|
|
|
|
ADD_SUBDIRECTORY(test)
|
|
|
|
SET (backend_sql_SOURCES
|
|
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
|
|
gnc-slots-sql.cpp
|
|
gnc-tax-table-sql.cpp
|
|
gnc-transaction-sql.cpp
|
|
gnc-vendor-sql.cpp
|
|
gnc-sql-backend.cpp
|
|
gnc-sql-result.cpp
|
|
gnc-sql-column-table-entry.cpp
|
|
gnc-sql-object-backend.cpp
|
|
escape.cpp
|
|
)
|
|
SET (backend_sql_noinst_HEADERS
|
|
gnc-account-sql.h
|
|
gnc-bill-term-sql.h
|
|
gnc-book-sql.h
|
|
gnc-budget-sql.h
|
|
gnc-commodity-sql.h
|
|
gnc-customer-sql.h
|
|
gnc-employee-sql.h
|
|
gnc-entry-sql.h
|
|
gnc-invoice-sql.h
|
|
gnc-job-sql.h
|
|
gnc-lots-sql.h
|
|
gnc-order-sql.h
|
|
gnc-price-sql.h
|
|
gnc-recurrence-sql.h
|
|
gnc-schedxaction-sql.h
|
|
gnc-slots-sql.h
|
|
gnc-tax-table-sql.h
|
|
gnc-transaction-sql.h
|
|
gnc-vendor-sql.h
|
|
gnc-sql-backend.hpp
|
|
gnc-sql-connection.hpp
|
|
gnc-sql-result.hpp
|
|
gnc-sql-column-table-entry.hpp
|
|
gnc-sql-object-backend.hpp
|
|
escape.h
|
|
)
|
|
|
|
SET_LOCAL_DIST(backend_sql_DIST_local ${backend_sql_SOURCES} ${backend_sql_noinst_HEADERS} CMakeLists.txt Makefile.am)
|
|
SET(backend_sql_DIST ${backend_sql_DIST_local} ${test_backend_sql_DIST} PARENT_SCOPE)
|
|
|
|
# Add dependency on config.h
|
|
SET_SOURCE_FILES_PROPERTIES (${gnc_backend_sql_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
|
|
|
|
ADD_LIBRARY (gnc-backend-sql
|
|
${backend_sql_SOURCES}
|
|
${backend_sql_noinst_HEADERS}
|
|
)
|
|
|
|
TARGET_LINK_LIBRARIES(gnc-backend-sql gncmod-engine)
|
|
|
|
TARGET_COMPILE_DEFINITIONS (gnc-backend-sql PRIVATE -DG_LOG_DOMAIN=\"gnc.backend.sql\")
|
|
|
|
TARGET_INCLUDE_DIRECTORIES(gnc-backend-sql PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
INSTALL(TARGETS gnc-backend-sql
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
RUNTIME DESTINATION bin)
|
|
|
|
# No headers to install
|