mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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.
48 lines
1.4 KiB
CMake
48 lines
1.4 KiB
CMake
# CMakeLists.txt for libgnucash/backend/dbi
|
|
|
|
ADD_SUBDIRECTORY(test)
|
|
|
|
# Source file gncmod-backend-dbi.c does not appear to be use in Makefile.in, so not included here.
|
|
|
|
SET (backend_dbi_SOURCES
|
|
gnc-backend-dbi.cpp
|
|
gnc-dbisqlresult.cpp
|
|
gnc-dbisqlconnection.cpp
|
|
)
|
|
SET (backend_dbi_noinst_HEADERS
|
|
gnc-backend-dbi.h
|
|
gnc-backend-dbi.hpp
|
|
gnc-dbisqlresult.hpp
|
|
gnc-dbisqlconnection.hpp
|
|
gnc-dbiprovider.hpp
|
|
gnc-dbiproviderimpl.hpp
|
|
)
|
|
|
|
SET_LOCAL_DIST(backend_dbi_DIST_local
|
|
${backend_dbi_SOURCES} ${backend_dbi_noinst_HEADERS} CMakeLists.txt Makefile.am)
|
|
SET(backend_dbi_DIST ${backend_dbi_DIST_local} ${test_dbi_backend_DIST} PARENT_SCOPE)
|
|
|
|
# Add dependency on config.h
|
|
SET_SOURCE_FILES_PROPERTIES (${backend_dbi_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
|
|
|
|
ADD_LIBRARY (gncmod-backend-dbi
|
|
${backend_dbi_SOURCES}
|
|
${backend_dbi_noinst_HEADERS}
|
|
)
|
|
|
|
SET(WINSOCK_LIB "")
|
|
IF(MINGW64)
|
|
SET(WINSOCK_LIB "-lws2_32")
|
|
ENDIF(MINGW64)
|
|
TARGET_LINK_LIBRARIES(gncmod-backend-dbi gnc-backend-sql gncmod-engine ${GTK2_LDFLAGS} ${Boost_REGEX_LIBRARY} ${LIBDBI_LIBRARY} ${WINSOCK_LIB})
|
|
|
|
TARGET_COMPILE_DEFINITIONS(gncmod-backend-dbi PRIVATE -DG_LOG_DOMAIN=\"gnc.backend.dbi\")
|
|
|
|
TARGET_INCLUDE_DIRECTORIES(gncmod-backend-dbi PRIVATE ${LIBDBI_INCLUDE_PATH})
|
|
|
|
INSTALL(TARGETS gncmod-backend-dbi
|
|
LIBRARY DESTINATION lib/gnucash
|
|
ARCHIVE DESTINATION lib/gnucash
|
|
RUNTIME DESTINATION bin)
|
|
# No headers to install
|