mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
The original merge was of a PR based on master into maint, bringing along all of the development changes in master along with it. We don't want that so the merge was reverted and the PR's two changes cherry-picked in. That fixed maint, but then the next regular merge of maint into master naturally included that revert commit undoing the changes in master. Not so good. Reverting the revert, this commit, restores the changes, albeit with messed up history.
87 lines
2.7 KiB
CMake
87 lines
2.7 KiB
CMake
add_subdirectory(test)
|
|
|
|
set(locale_tax_SOURCES gnc-locale-tax.c gnc-locale-tax.h)
|
|
|
|
# Add dependency on config.h
|
|
set_source_files_properties (${locale_tax_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
|
|
|
|
add_library(gnc-locale-tax ${locale_tax_SOURCES})
|
|
target_link_libraries(gnc-locale-tax
|
|
${GLIB2_LDFLAGS}
|
|
${GUILE_LDFLAGS})
|
|
|
|
target_include_directories(gnc-locale-tax
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
|
|
PRIVATE
|
|
${CMAKE_BINARY_DIR}/common
|
|
${GUILE_INCLUDE_DIRS}
|
|
${GLIB2_INCLUDE_DIRS})
|
|
|
|
if (APPLE)
|
|
set_target_properties (gnc-locale-tax PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_FULL_LIBDIR}")
|
|
endif()
|
|
|
|
install(TARGETS gnc-locale-tax
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
# No headers to install
|
|
|
|
# Scheme
|
|
|
|
set(gncmod_tax_us_SCHEME_1 us/txf-help.scm)
|
|
set(gncmod_tax_us_SCHEME_2 us/txf.scm)
|
|
set(gncmod_tax_us_SCHEME_3 us/tax.scm)
|
|
|
|
set(gncmod_tax_de_DE_SCHEME_1 de_DE/txf-help.scm)
|
|
set(gncmod_tax_de_DE_SCHEME_2 de_DE/txf.scm)
|
|
set(gncmod_tax_de_DE_SCHEME_3 de_DE/tax.scm)
|
|
|
|
set(GUILE_DEPENDS scm-app-utils)
|
|
|
|
gnc_add_scheme_targets(scm-tax-us-1
|
|
SOURCES "${gncmod_tax_us_SCHEME_1}"
|
|
OUTPUT_DIR "gnucash/locale/us/tax"
|
|
DEPENDS "${GUILE_DEPENDS}"
|
|
MAKE_LINKS)
|
|
|
|
gnc_add_scheme_targets(scm-tax-us-2
|
|
SOURCES "${gncmod_tax_us_SCHEME_2}"
|
|
OUTPUT_DIR "gnucash/locale/us/tax"
|
|
DEPENDS "scm-tax-us-1;${GUILE_DEPENDS}"
|
|
MAKE_LINKS)
|
|
|
|
gnc_add_scheme_targets(scm-tax-us-3
|
|
SOURCES "${gncmod_tax_us_SCHEME_3}"
|
|
OUTPUT_DIR "gnucash/locale/us"
|
|
DEPENDS "scm-tax-us-2;${GUILE_DEPENDS}")
|
|
|
|
gnc_add_scheme_targets(scm-tax-de_DE-1
|
|
SOURCES "${gncmod_tax_de_DE_SCHEME_1}"
|
|
OUTPUT_DIR "gnucash/locale/de_DE/tax"
|
|
DEPENDS "${GUILE_DEPENDS}"
|
|
MAKE_LINKS)
|
|
|
|
gnc_add_scheme_targets(scm-tax-de_DE-2
|
|
SOURCES "${gncmod_tax_de_DE_SCHEME_2}"
|
|
OUTPUT_DIR "gnucash/locale/de_DE/tax"
|
|
DEPENDS "${GUILE_DEPENDS}"
|
|
MAKE_LINKS)
|
|
|
|
gnc_add_scheme_targets(scm-tax-de_DE-3
|
|
SOURCES "${gncmod_tax_de_DE_SCHEME_3}"
|
|
OUTPUT_DIR "gnucash/locale/de_DE"
|
|
DEPENDS "scm-tax-de_DE-2;${GUILE_DEPENDS}")
|
|
|
|
add_custom_target(scm-locale-tax ALL DEPENDS scm-tax-us-1 scm-tax-us-2 scm-tax-us-3 scm-tax-de_DE-1 scm-tax-de_DE-2 scm-tax-de_DE-3)
|
|
|
|
set(de_DE_tax_EXTRA_DIST
|
|
"de_DE/taxtxf - LIES MICH.txt"
|
|
"de_DE/txf-USt-Bericht.html"
|
|
"de_DE/txf-USt-VA Anleitung 2011.pdf")
|
|
set_local_dist(tax_DIST_local CMakeLists.txt ${locale_tax_SOURCES}
|
|
${gncmod_tax_us_SCHEME_1} ${gncmod_tax_us_SCHEME_2} ${gncmod_tax_us_SCHEME_3}
|
|
${gncmod_tax_de_DE_SCHEME_1} ${gncmod_tax_de_DE_SCHEME_2} ${gncmod_tax_de_DE_SCHEME_3}
|
|
${de_DE_tax_EXTRA_DIST})
|
|
set(tax_DIST ${tax_DIST_local} ${locale_tax_DIST} ${test_locale_tax_DIST} PARENT_SCOPE)
|