2019-08-22 08:53:11 -05:00
|
|
|
add_subdirectory(test)
|
2017-02-01 21:48:46 -06:00
|
|
|
|
2019-11-26 14:30:28 -06:00
|
|
|
set(locale_tax_SOURCES gnc-locale-tax.c gnc-locale-tax.h)
|
2017-02-01 21:48:46 -06:00
|
|
|
|
2019-08-22 08:53:11 -05:00
|
|
|
# Add dependency on config.h
|
|
|
|
set_source_files_properties (${locale_tax_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
|
|
|
|
|
2019-11-26 14:30:28 -06:00
|
|
|
add_library(gnc-locale-tax ${locale_tax_SOURCES})
|
2020-04-24 15:16:24 -05:00
|
|
|
target_link_libraries(gnc-locale-tax
|
|
|
|
${GLIB2_LDFLAGS}
|
|
|
|
${GUILE_LDFLAGS})
|
2019-08-22 08:53:11 -05:00
|
|
|
|
2019-11-26 14:30:28 -06:00
|
|
|
target_include_directories(gnc-locale-tax
|
|
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
|
2020-04-24 15:16:24 -05:00
|
|
|
PRIVATE
|
|
|
|
${CMAKE_BINARY_DIR}/common
|
|
|
|
${GUILE_INCLUDE_DIRS}
|
|
|
|
${GLIB2_INCLUDE_DIRS})
|
2019-08-22 08:53:11 -05:00
|
|
|
|
|
|
|
if (APPLE)
|
2019-11-26 14:30:28 -06:00
|
|
|
set_target_properties (gnc-locale-tax PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_FULL_LIBDIR}")
|
2019-08-22 08:53:11 -05:00
|
|
|
endif()
|
|
|
|
|
2019-11-26 14:30:28 -06:00
|
|
|
install(TARGETS gnc-locale-tax
|
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
2019-08-22 08:53:11 -05:00
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
|
|
# No headers to install
|
|
|
|
|
|
|
|
# Scheme
|
|
|
|
|
|
|
|
set(gncmod_tax_us_SCHEME_1 us/txf.scm us/txf-help.scm)
|
2019-08-22 09:12:20 -05:00
|
|
|
set(gncmod_tax_us_SCHEME_2 us/tax.scm)
|
2019-08-22 08:53:11 -05:00
|
|
|
|
2019-08-22 09:12:20 -05:00
|
|
|
set(gncmod_tax_de_DE_SCHEME_1 de_DE/txf.scm de_DE/txf-help.scm)
|
|
|
|
set(gncmod_tax_de_DE_SCHEME_2 de_DE/tax.scm)
|
2019-08-22 08:53:11 -05:00
|
|
|
|
2020-04-24 15:16:24 -05:00
|
|
|
set(GUILE_DEPENDS scm-app-utils)
|
2019-08-22 08:53:11 -05:00
|
|
|
|
|
|
|
gnc_add_scheme_targets(scm-tax-us-1
|
2020-03-08 16:29:01 -05:00
|
|
|
SOURCES "${gncmod_tax_us_SCHEME_1}"
|
|
|
|
OUTPUT_DIR "gnucash/locale/us/tax"
|
|
|
|
DEPENDS "${GUILE_DEPENDS}"
|
|
|
|
MAKE_LINKS)
|
|
|
|
|
2019-08-22 08:53:11 -05:00
|
|
|
gnc_add_scheme_targets(scm-tax-us-2
|
2020-03-08 16:29:01 -05:00
|
|
|
SOURCES "${gncmod_tax_us_SCHEME_2}"
|
|
|
|
OUTPUT_DIR "gnucash/locale/us"
|
|
|
|
DEPENDS "scm-tax-us-1;${GUILE_DEPENDS}")
|
2019-08-22 08:53:11 -05:00
|
|
|
|
|
|
|
gnc_add_scheme_targets(scm-tax-de_DE-1
|
2020-03-08 16:29:01 -05:00
|
|
|
SOURCES "${gncmod_tax_de_DE_SCHEME_1}"
|
|
|
|
OUTPUT_DIR "gnucash/locale/de_DE/tax"
|
|
|
|
DEPENDS "${GUILE_DEPENDS}"
|
|
|
|
MAKE_LINKS)
|
|
|
|
|
2019-08-22 08:53:11 -05:00
|
|
|
gnc_add_scheme_targets(scm-tax-de_DE-2
|
2020-03-08 16:29:01 -05:00
|
|
|
SOURCES "${gncmod_tax_de_DE_SCHEME_2}"
|
|
|
|
OUTPUT_DIR "gnucash/locale/de_DE"
|
|
|
|
DEPENDS "scm-tax-de_DE-1;${GUILE_DEPENDS}")
|
2019-08-22 08:53:11 -05:00
|
|
|
|
|
|
|
add_custom_target(scm-locale-tax ALL DEPENDS scm-tax-us-1 scm-tax-us-2 scm-tax-de_DE-1 scm-tax-de_DE-2 )
|
|
|
|
|
|
|
|
set(de_DE_tax_EXTRA_DIST
|
2019-08-27 10:26:04 -05:00
|
|
|
"de_DE/taxtxf - LIES MICH.txt"
|
|
|
|
"de_DE/txf-USt-Bericht.html"
|
|
|
|
"de_DE/txf-USt-VA Anleitung 2011.pdf")
|
2019-08-22 08:53:11 -05:00
|
|
|
set_local_dist(tax_DIST_local CMakeLists.txt ${locale_tax_SOURCES}
|
|
|
|
${gncmod_tax_us_SCHEME_1} ${gncmod_tax_us_SCHEME_2}
|
|
|
|
${gncmod_tax_de_DE_SCHEME_1} ${gncmod_tax_de_DE_SCHEME_2}
|
2019-08-27 10:26:04 -05:00
|
|
|
${de_DE_tax_EXTRA_DIST})
|
2019-08-22 08:53:11 -05:00
|
|
|
set(tax_DIST ${tax_DIST_local} ${locale_tax_DIST} ${test_locale_tax_DIST} PARENT_SCOPE)
|