2017-08-10 06:56:00 -05:00
|
|
|
# CMakeLists.txt for libgnucash/backend/xml
|
2010-02-27 05:37:14 -06:00
|
|
|
|
2016-01-26 09:00:54 -06:00
|
|
|
ADD_SUBDIRECTORY(test)
|
2016-01-18 10:33:34 -06:00
|
|
|
|
2015-12-07 11:17:08 -06:00
|
|
|
SET (backend_xml_utils_noinst_HEADERS
|
|
|
|
gnc-backend-xml.h
|
|
|
|
gnc-xml.h
|
|
|
|
gnc-address-xml-v2.h
|
|
|
|
gnc-bill-term-xml-v2.h
|
|
|
|
gnc-customer-xml-v2.h
|
|
|
|
gnc-employee-xml-v2.h
|
|
|
|
gnc-entry-xml-v2.h
|
|
|
|
gnc-invoice-xml-v2.h
|
|
|
|
gnc-job-xml-v2.h
|
|
|
|
gnc-order-xml-v2.h
|
|
|
|
gnc-owner-xml-v2.h
|
|
|
|
gnc-tax-table-xml-v2.h
|
|
|
|
gnc-vendor-xml-v2.h
|
2016-11-21 11:55:39 -06:00
|
|
|
gnc-xml-backend.hpp
|
2015-12-07 11:17:08 -06:00
|
|
|
gnc-xml-helper.h
|
|
|
|
io-example-account.h
|
|
|
|
io-gncxml-gen.h
|
|
|
|
io-gncxml-v2.h
|
|
|
|
io-gncxml.h
|
|
|
|
io-utils.h
|
|
|
|
sixtp-dom-generators.h
|
|
|
|
sixtp-dom-parsers.h
|
|
|
|
sixtp-parsers.h
|
|
|
|
sixtp-stack.h
|
|
|
|
sixtp-utils.h
|
|
|
|
sixtp.h
|
|
|
|
xml-helpers.h
|
|
|
|
)
|
|
|
|
|
|
|
|
SET (backend_xml_utils_SOURCES
|
2015-12-01 11:38:14 -06:00
|
|
|
gnc-account-xml-v2.cpp
|
|
|
|
gnc-address-xml-v2.cpp
|
|
|
|
gnc-bill-term-xml-v2.cpp
|
|
|
|
gnc-book-xml-v2.cpp
|
|
|
|
gnc-budget-xml-v2.cpp
|
|
|
|
gnc-commodity-xml-v2.cpp
|
|
|
|
gnc-customer-xml-v2.cpp
|
|
|
|
gnc-employee-xml-v2.cpp
|
|
|
|
gnc-entry-xml-v2.cpp
|
|
|
|
gnc-freqspec-xml-v2.cpp
|
|
|
|
gnc-invoice-xml-v2.cpp
|
|
|
|
gnc-job-xml-v2.cpp
|
|
|
|
gnc-lot-xml-v2.cpp
|
|
|
|
gnc-order-xml-v2.cpp
|
|
|
|
gnc-owner-xml-v2.cpp
|
|
|
|
gnc-pricedb-xml-v2.cpp
|
|
|
|
gnc-recurrence-xml-v2.cpp
|
|
|
|
gnc-schedxaction-xml-v2.cpp
|
|
|
|
gnc-tax-table-xml-v2.cpp
|
|
|
|
gnc-transaction-xml-v2.cpp
|
|
|
|
gnc-vendor-xml-v2.cpp
|
2016-11-21 11:55:39 -06:00
|
|
|
gnc-xml-backend.cpp
|
2015-12-01 11:38:14 -06:00
|
|
|
gnc-xml-helper.cpp
|
|
|
|
io-example-account.cpp
|
|
|
|
io-gncxml-gen.cpp
|
2015-07-05 16:13:02 -05:00
|
|
|
io-gncxml-v1.cpp
|
2015-12-01 11:38:14 -06:00
|
|
|
io-gncxml-v2.cpp
|
|
|
|
io-utils.cpp
|
2015-06-13 17:33:03 -05:00
|
|
|
sixtp-dom-generators.cpp
|
|
|
|
sixtp-dom-parsers.cpp
|
2015-12-01 11:38:14 -06:00
|
|
|
sixtp-stack.cpp
|
|
|
|
sixtp-to-dom-parser.cpp
|
|
|
|
sixtp-utils.cpp
|
|
|
|
sixtp.cpp
|
2010-02-27 05:37:14 -06:00
|
|
|
)
|
|
|
|
|
2017-07-04 20:36:35 -05:00
|
|
|
SET_LOCAL_DIST(backend_xml_DIST_local ${backend_xml_utils_SOURCES}
|
|
|
|
${backend_xml_utils_noinst_HEADERS} gnc-backend-xml.cpp CMakeLists.txt
|
2017-12-02 19:50:14 -06:00
|
|
|
)
|
2017-02-01 21:48:46 -06:00
|
|
|
SET(backend_xml_DIST ${backend_xml_DIST_local} ${test_backend_xml_DIST} PARENT_SCOPE)
|
2015-12-07 11:17:08 -06:00
|
|
|
|
2010-02-27 05:37:14 -06:00
|
|
|
# Add dependency on config.h
|
2015-12-07 11:17:08 -06:00
|
|
|
SET_SOURCE_FILES_PROPERTIES (${backend_xml_utils_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
|
|
|
|
|
|
|
|
ADD_LIBRARY (gnc-backend-xml-utils
|
|
|
|
${backend_xml_utils_SOURCES}
|
|
|
|
${backend_xml_utils_noinst_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(gnc-backend-xml-utils gncmod-engine ${LIBXML2_LDFLAGS} ${ZLIB_LDFLAGS})
|
|
|
|
|
|
|
|
TARGET_INCLUDE_DIRECTORIES (gnc-backend-xml-utils
|
|
|
|
PUBLIC ${LIBXML2_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
PRIVATE ${ZLIB_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
|
2016-05-21 13:01:53 -05:00
|
|
|
TARGET_COMPILE_DEFINITIONS (gnc-backend-xml-utils PRIVATE -DG_LOG_DOMAIN=\"gnc.backend.xml\" -DU_SHOW_CPLUSPLUS_API=0)
|
2015-12-07 11:17:08 -06:00
|
|
|
|
|
|
|
INSTALL(TARGETS gnc-backend-xml-utils
|
2017-11-28 16:25:35 -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
|
|
|
# No headers to install
|
|
|
|
|
|
|
|
# ----
|
2010-02-27 05:37:14 -06:00
|
|
|
|
2015-12-07 11:17:08 -06:00
|
|
|
SET(libgncmod_backend_xml_SOURCES gnc-backend-xml.cpp)
|
|
|
|
|
|
|
|
SET_SOURCE_FILES_PROPERTIES (${libgncmod_backend_xml_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
|
|
|
|
|
|
|
|
ADD_LIBRARY(gncmod-backend-xml MODULE ${libgncmod_backend_xml_SOURCES})
|
|
|
|
TARGET_LINK_LIBRARIES(gncmod-backend-xml gnc-backend-xml-utils gncmod-engine
|
|
|
|
gnc-core-utils ${LIBXML2_LDFLAGS} ${GLIB2_LDFLAGS} ${ZLIB_LIBRARY})
|
|
|
|
|
2016-05-21 13:01:53 -05:00
|
|
|
TARGET_COMPILE_DEFINITIONS (gncmod-backend-xml PRIVATE -DG_LOG_DOMAIN=\"gnc.backend.xml\" -DU_SHOW_CPLUSPLUS_API=0)
|
2015-12-07 11:17:08 -06:00
|
|
|
|
2017-11-28 16:25:35 -06:00
|
|
|
SET(LIB_DIR ${CMAKE_INSTALL_LIBDIR}/gnucash)
|
2015-12-07 11:17:08 -06:00
|
|
|
IF (WIN32)
|
2017-11-28 16:25:35 -06:00
|
|
|
SET(LIB_DIR ${CMAKE_INSTALL_BINDIR})
|
2015-12-07 11:17:08 -06:00
|
|
|
ENDIF(WIN32)
|
|
|
|
|
|
|
|
|
2017-10-15 15:22:29 -05:00
|
|
|
IF (APPLE)
|
2017-11-28 16:25:35 -06:00
|
|
|
SET_TARGET_PROPERTIES (gncmod-backend-xml PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_FULL_LIBDIR}")
|
2017-10-15 15:22:29 -05:00
|
|
|
ENDIF()
|
|
|
|
|
2015-12-07 11:17:08 -06:00
|
|
|
INSTALL(TARGETS gncmod-backend-xml
|
|
|
|
LIBRARY DESTINATION ${LIB_DIR}
|
|
|
|
ARCHIVE DESTINATION ${LIB_DIR}
|
2017-11-28 16:25:35 -06:00
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2015-12-07 11:17:08 -06:00
|
|
|
|
|
|
|
# ----
|
|
|
|
|
2016-10-05 15:18:46 -05:00
|
|
|
# Special normal (non-MODULE) library for cutecash only
|
|
|
|
ADD_LIBRARY(gncmod-backend-xml-utils ${libgncmod_backend_xml_SOURCES})
|
|
|
|
TARGET_LINK_LIBRARIES(gncmod-backend-xml-utils gnc-backend-xml-utils gncmod-engine
|
|
|
|
gnc-core-utils ${LIBXML2_LDFLAGS} ${GLIB2_LDFLAGS} ${ZLIB_LIBRARY})
|
|
|
|
TARGET_COMPILE_DEFINITIONS (gncmod-backend-xml-utils PRIVATE -DG_LOG_DOMAIN=\"gnc.backend.xml\" -DU_SHOW_CPLUSPLUS_API=0)
|