mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-21 16:38:06 -06:00
Merge CMake Distcheck from 'maint'.
Conflicts: CMakeLists.txt src/app-utils/CMakeLists.txt src/backend/sql/test/CMakeLists.txt src/backend/xml/test/CMakeLists.txt src/gnome-utils/CMakeLists.txt src/import-export/aqb/CMakeLists.txt src/import-export/csv-imp/CMakeLists.txt src/import-export/csv-imp/test/Makefile.am src/import-export/ofx/CMakeLists.txt src/import-export/qif-imp/CMakeLists.txt src/libqof/CMakeLists.txt src/register/ledger-core/CMakeLists.txt src/register/register-core/CMakeLists.txt src/register/register-gnome/CMakeLists.txt src/report/business-reports/CMakeLists.txt src/report/locale-specific/us/CMakeLists.txt src/report/report-gnome/CMakeLists.txt src/report/standard-reports/CMakeLists.txt src/report/stylesheets/CMakeLists.txt
This commit is contained in:
commit
c8402ad62e
264
CMakeLists.txt
264
CMakeLists.txt
@ -1,7 +1,4 @@
|
||||
# CMakeLists.txt for the cutecash sub-project of gnucash
|
||||
|
||||
# This is very EXPERIMENTAL! We will see how far this project will
|
||||
# get.
|
||||
# CMakeLists.txt for GnuCash
|
||||
|
||||
IF (WIN32)
|
||||
CMAKE_MINIMUM_REQUIRED (VERSION 3.3.2)
|
||||
@ -46,13 +43,14 @@ INCLUDE (GncAddSchemeTargets)
|
||||
INCLUDE (GncConfigure)
|
||||
INCLUDE (GncAddGSchemaTargets)
|
||||
INCLUDE (GncAddTest)
|
||||
INCLUDE (MakeDistFiles)
|
||||
|
||||
# ############################################################
|
||||
# These options are settable from the CMake command line. For example, to disable
|
||||
# SQL, put -D WITH_SQL=OFF on the command line.
|
||||
|
||||
OPTION (WITH_SQL "Build this project with SQL (libdbi) support" ON)
|
||||
OPTION (WITH_AQBANKING "Build this project with aqbanking (online banking) support" ON )
|
||||
OPTION (WITH_AQBANKING "Build this project with aqbanking (online banking) support" OFF )
|
||||
OPTION (WITH_GNUCASH "Build all of GnuCash, not just cutecash" ON)
|
||||
OPTION (WITH_CUTECASH "Also build cutecash" OFF)
|
||||
OPTION (WITH_OFX "compile with ofx support (needs LibOFX)" ON)
|
||||
@ -64,7 +62,11 @@ OPTION (DISABLE_NLS "do not use Native Language Support" OFF)
|
||||
OPTION (DISABLE_DEPRECATED_GLIB "don't use deprecated glib functions" OFF)
|
||||
OPTION (DISABLE_DEPRECATED_GTK "don't use deprecated gtk, gdk or gdk-pixbuf functions" OFF)
|
||||
OPTION (DISABLE_DEPRECATED_GNOME "don't use deprecated gnome functions" OFF)
|
||||
OPTION (GNC_BUILD_AS_INSTALL "Make build directory structure mirror install" ON)
|
||||
|
||||
# If AUTOTOOLS_IN_DIST is OFF, then 'dist' wont run autogen.sh, and 'distcheck'
|
||||
# won't run the autotools distcheck. Note that various Makefile.am files are still
|
||||
# included in the dist when this is OFF. I'll fix that at some point.
|
||||
OPTION (AUTOTOOLS_IN_DIST "Add autotools support to distribution tarballs." ON)
|
||||
# ############################################################
|
||||
|
||||
# These are also settable from the command line in a similar way.
|
||||
@ -84,13 +86,10 @@ SET(TEST_MYSQL_URL "" CACHE STRING "MySQL database URL for testing")
|
||||
SET(TEST_PGSQL_URL "" CACHE STRING "PgSQL database URL for testing")
|
||||
SET(HTMLHELP_DIR ${CMAKE_PREFIX_PATH}/hh CACHE PATH "Specify location of Win32 HTMLHELP library")
|
||||
|
||||
IF(GNC_BUILD_AS_INSTALL)
|
||||
SET(DATADIR_BUILD ${CMAKE_BINARY_DIR}/${DATADIRNAME})
|
||||
SET(LIBDIR_BUILD ${CMAKE_BINARY_DIR}/lib)
|
||||
SET(SYSCONFDIR_BUILD ${CMAKE_BINARY_DIR}/etc)
|
||||
SET(BINDIR_BUILD ${CMAKE_BINARY_DIR}/bin)
|
||||
|
||||
ENDIF()
|
||||
SET(DATADIR_BUILD ${CMAKE_BINARY_DIR}/${DATADIRNAME})
|
||||
SET(LIBDIR_BUILD ${CMAKE_BINARY_DIR}/lib)
|
||||
SET(SYSCONFDIR_BUILD ${CMAKE_BINARY_DIR}/etc)
|
||||
SET(BINDIR_BUILD ${CMAKE_BINARY_DIR}/bin)
|
||||
|
||||
SET(SHELL_FROM_ENV $ENV{SHELL})
|
||||
SET(SHELL /bin/bash)
|
||||
@ -112,8 +111,15 @@ EXECUTE_PROCESS(
|
||||
SET(BUILDING_FROM_VCS "NO")
|
||||
IF (GNC_VCS_INFO_RESULT EQUAL 0)
|
||||
SET(BUILDING_FROM_VCS "YES")
|
||||
# IF building from VCS, we need git
|
||||
find_package(Git)
|
||||
IF (NOT GIT_FOUND)
|
||||
MESSAGE(SEND_ERROR "Looks like we're building from vesion control, but can't find git executable. Please set GIT_EXECUTABLE.")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
|
||||
|
||||
IF (WIN32)
|
||||
# Help Windows find the various dependencies. We assume here that the standard advice for building
|
||||
# GnuCash has been followed and that these dependencies live underneath something like C:/GCDEV, which
|
||||
@ -465,36 +471,30 @@ ENDIF()
|
||||
|
||||
SET(BUILD_SHARED_LIBS ON)
|
||||
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
# Most libraries are installed to lib/gnucash, so set that as the default.
|
||||
# For the handful that are installed to lib, we override the properies below
|
||||
# (after the targets have been read in).
|
||||
# Most libraries are installed to lib/gnucash, so set that as the default.
|
||||
# For the handful that are installed to lib, we override the properies below
|
||||
# (after the targets have been read in).
|
||||
|
||||
|
||||
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/gnucash)
|
||||
IF (XCODE_VERSION)
|
||||
# FIXME: These settings break the ability to manipulate different configurations (Debug,
|
||||
# FIXME: Release, etc.) in Xcode. We'll need to change the module loading C code if
|
||||
# we want to support multi config.
|
||||
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/lib/gnucash)
|
||||
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/lib/gnucash)
|
||||
ENDIF()
|
||||
# For binarines
|
||||
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
IF (XCODE_VERSION)
|
||||
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/bin)
|
||||
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin)
|
||||
ENDIF()
|
||||
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/gnucash)
|
||||
IF (XCODE_VERSION)
|
||||
# FIXME: These settings break the ability to manipulate different configurations (Debug,
|
||||
# FIXME: Release, etc.) in Xcode. We'll need to change the module loading C code if
|
||||
# we want to support multi config.
|
||||
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/lib/gnucash)
|
||||
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/lib/gnucash)
|
||||
ENDIF()
|
||||
|
||||
# For binarines
|
||||
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
IF (XCODE_VERSION)
|
||||
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/bin)
|
||||
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin)
|
||||
ENDIF()
|
||||
# ############################################################
|
||||
|
||||
GNC_GTEST_CONFIGURE()
|
||||
|
||||
SET(CMAKE_CTEST_COMMAND ctest)
|
||||
IF (XCODE_VERSION)
|
||||
SET(CMAKE_CTEST_COMMAND ctest -C Debug)
|
||||
ENDIF()
|
||||
|
||||
# There are targets that need to build before tests will run
|
||||
ADD_CUSTOM_TARGET(check
|
||||
COMMAND ${CMAKE_CTEST_COMMAND}
|
||||
@ -503,50 +503,15 @@ ADD_CUSTOM_TARGET(check
|
||||
scm-test-core scm-test-report-system scm-standard-reports-2
|
||||
scm-test-standard-reports foo gncmodfoo baz gncmodbaz
|
||||
bar gncmodbar gncmod_agedver gncmod_incompatdep
|
||||
gncmod_futuremodsys test-core-guile
|
||||
gncmod_futuremodsys check-po test-core-guile
|
||||
)
|
||||
IF (NOT WIN32)
|
||||
ADD_DEPENDENCIES(check gncmod-backend-xml-link)
|
||||
ENDIF()
|
||||
|
||||
# The subdirectories
|
||||
ADD_SUBDIRECTORY (accounts)
|
||||
ADD_SUBDIRECTORY (checks)
|
||||
ADD_SUBDIRECTORY (doc)
|
||||
ADD_SUBDIRECTORY (packaging)
|
||||
ADD_SUBDIRECTORY (po)
|
||||
ADD_SUBDIRECTORY (src)
|
||||
|
||||
# This cmake subdir must be the last add_subdirectory() call because
|
||||
# it contains post-install actions to execute.
|
||||
ADD_SUBDIRECTORY(cmake)
|
||||
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
SET_TARGET_PROPERTIES(gnc-qof gnc-core-utils gnc-module gnc-backend-sql gnc-backend-xml-utils
|
||||
gnc-business-ledger gnc-gnome PROPERTIES
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
IF (XCODE_VERSION)
|
||||
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/lib
|
||||
ENDIF()
|
||||
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
IF (XCODE_VERSION)
|
||||
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/bin
|
||||
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin
|
||||
ENDIF()
|
||||
)
|
||||
IF (WIN32)
|
||||
SET_TARGET_PROPERTIES(gncmod-backend-xml gncmod-stylesheets gncmod-utility-reports PROPERTIES
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
# Install DOC files from top level directory
|
||||
|
||||
SET(gnucash_DOCS
|
||||
AUTHORS
|
||||
ChangeLog
|
||||
ChangeLog.1999
|
||||
ChangeLog.2000
|
||||
ChangeLog.2001
|
||||
@ -570,8 +535,151 @@ SET(gnucash_DOCS
|
||||
README.dependencies
|
||||
)
|
||||
|
||||
|
||||
INSTALL(FILES ${gnucash_DOCS} DESTINATION share/doc/gnucash)
|
||||
|
||||
# The subdirectories
|
||||
ADD_SUBDIRECTORY (accounts)
|
||||
ADD_SUBDIRECTORY (checks)
|
||||
ADD_SUBDIRECTORY (doc)
|
||||
ADD_SUBDIRECTORY (lib)
|
||||
ADD_SUBDIRECTORY (macros)
|
||||
ADD_SUBDIRECTORY (packaging)
|
||||
ADD_SUBDIRECTORY (po)
|
||||
ADD_SUBDIRECTORY (src)
|
||||
ADD_SUBDIRECTORY (test-templates)
|
||||
ADD_SUBDIRECTORY (util)
|
||||
|
||||
# This cmake subdir must be the last add_subdirectory() call because
|
||||
# it contains post-install actions to execute.
|
||||
ADD_SUBDIRECTORY(cmake)
|
||||
|
||||
############################ BEGIN MAKE DIST #################
|
||||
|
||||
|
||||
|
||||
SET(PACKAGE_PREFIX "${PACKAGE}-${PACKAGE_VERSION}")
|
||||
SET(DIST_FILE "${PACKAGE_PREFIX}.tar")
|
||||
|
||||
SET(gnucash_DIST_local ${gnucash_DOCS} ChangeLog.2015 ChangeLog.2016
|
||||
CMakeLists.txt configure.ac Makefile.am make-gnucash-potfiles.in README)
|
||||
|
||||
IF(BUILDING_FROM_VCS AND AUTOTOOLS_IN_DIST)
|
||||
SET(gnucash_DIST_local ${gnucash_DIST_local} autogen.sh)
|
||||
ENDIF()
|
||||
|
||||
SET_LOCAL_DIST(gnucash_DIST ${gnucash_DIST_local})
|
||||
|
||||
# Each subdirectory is responsible for reporting its list of distribution files to its parent, up to here.
|
||||
#
|
||||
# Leaf directories use the SET_DIST_LIST() function to report their distribution files. See
|
||||
# the bottom of src/app-utils/test/CMakeLists.txt for an example.
|
||||
#
|
||||
# A non leaf directories uses the SET_LOCAL_DIST() function to specify its distribution files local that dir,
|
||||
# then uses a (SET ${foo_DIST} ${locals....} PARENT_SCOPE) command to report up. See the bottom of
|
||||
# src/app-utils/CMakeLists.txt for an example of this.
|
||||
|
||||
SET(ALL_DIST ${accounts_DIST} ${checks_DIST} ${cmake_DIST} ${doc_DIST} ${lib_DIST} ${macros_DIST} ${packaging_DIST}
|
||||
${po_DIST} ${src_DIST} ${gnucash_DIST} ${test_templates_DIST} ${util_DIST})
|
||||
|
||||
|
||||
IF (BUILDING_FROM_VCS)
|
||||
SET(BUILD_SOURCE_DIR ${CMAKE_BINARY_DIR})
|
||||
ELSE()
|
||||
SET(BUILD_SOURCE_DIR ${CMAKE_SOURCE_DIR})
|
||||
IF(AUTOTOOLS_IN_DIST)
|
||||
# Include autotools generated file in the dist
|
||||
LIST(APPEND ALL_DIST compile config.guess config.sub configure depcomp install-sh missing
|
||||
src/doc/design/mdate-sh src/doc/design/texinfo.tex)
|
||||
IF (EXISTS ${CMAKE_SOURCE_DIR}/test-driver) # test-driver only created for automake 1.12+.
|
||||
LIST(APPEND ALL_DIST test-driver)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
# Write a dist manifest
|
||||
STRING(REPLACE ";" "\n" ALL_DIST_LINES "${ALL_DIST}")
|
||||
FILE(WRITE ${CMAKE_BINARY_DIR}/dist_manifest.txt ${ALL_DIST_LINES})
|
||||
|
||||
SET(DIST_GENERATED_FILES "")
|
||||
FOREACH(file ${COPY_FROM_BUILD})
|
||||
LIST(APPEND DIST_GENERATED_FILES2 ${BUILD_SOURCE_DIR}/${file})
|
||||
ENDFOREACH()
|
||||
|
||||
|
||||
ADD_CUSTOM_COMMAND(OUTPUT ${DIST_FILE}.gz ${DIST_FILE}.bz2
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-D CMAKE_MODULE_PATH=${CMAKE_SOURCE_DIR}/src/cmake_modules
|
||||
-D PACKAGE_PREFIX=${PACKAGE_PREFIX}
|
||||
-D GNUCASH_SOURCE_DIR=${CMAKE_SOURCE_DIR}
|
||||
-D BUILD_SOURCE_DIR=${BUILD_SOURCE_DIR}
|
||||
-D BUILDING_FROM_VCS=${BUILDING_FROM_VCS}
|
||||
-D SHELL=${SHELL}
|
||||
-D AUTOTOOLS_IN_DIST=${AUTOTOOLS_IN_DIST}
|
||||
-P ${CMAKE_SOURCE_DIR}/src/cmake_modules/MakeDist.cmake
|
||||
|
||||
DEPENDS
|
||||
${ALL_DIST} ${DIST_GENERATED_FILES2} gnc-vcs-info iso-4217-c gnc-warnings-c build-config-scm gnucash-design-info ChangeLog
|
||||
)
|
||||
|
||||
ADD_CUSTOM_TARGET(dist DEPENDS ${DIST_FILE}.gz ${DIST_FILE}.bz2)
|
||||
|
||||
ADD_CUSTOM_TARGET(distcheck DEPENDS dist
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-D CMAKE_MODULE_PATH=${CMAKE_SOURCE_DIR}/src/cmake_modules
|
||||
-D CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}
|
||||
-D PACKAGE_PREFIX=${PACKAGE_PREFIX}
|
||||
-D CMAKE_C_FLAGS=${CMAKE_C_FLAGS}
|
||||
-D CMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
|
||||
-D AUTOTOOLS_IN_DIST=${AUTOTOOLS_IN_DIST}
|
||||
-P ${CMAKE_SOURCE_DIR}/src/cmake_modules/MakeDistCheck.cmake
|
||||
)
|
||||
|
||||
|
||||
|
||||
############################# END MAKE DIST #################
|
||||
|
||||
# uninstall target
|
||||
configure_file(
|
||||
"${CMAKE_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
||||
@ONLY)
|
||||
|
||||
add_custom_target(uninstall
|
||||
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
||||
|
||||
SET_TARGET_PROPERTIES(gnc-qof gnc-core-utils gnc-module gnc-backend-sql gnc-backend-xml-utils
|
||||
gnc-business-ledger gnc-gnome PROPERTIES
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
IF (XCODE_VERSION)
|
||||
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/lib
|
||||
ENDIF()
|
||||
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
IF (XCODE_VERSION)
|
||||
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/bin
|
||||
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin
|
||||
ENDIF()
|
||||
)
|
||||
|
||||
IF (WIN32)
|
||||
SET_TARGET_PROPERTIES(gncmod-backend-xml gncmod-stylesheets gncmod-utility-reports PROPERTIES
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
# Generate the ChangeLog
|
||||
|
||||
IF (BUILDING_FROM_VCS)
|
||||
ADD_CUSTOM_TARGET(ChangeLog ALL
|
||||
COMMAND ${GIT_EXECUTABLE} log --format=\"%ad %aN %n%n%x09* %s%d%n\" --date=short --since=2016-01-01 > ${CMAKE_BINARY_DIR}/ChangeLog
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
)
|
||||
ELSE()
|
||||
FILE(COPY ChangeLog DESTINATION ChangeLog)
|
||||
ENDIF()
|
||||
|
||||
#Link LICENSE to COPYING so that people expecting to find it,
|
||||
#will. COPYING is normally linked by autogen.sh to the latest
|
||||
#automake-provided version.
|
||||
@ -592,14 +700,10 @@ INSTALL(CODE
|
||||
IF (WIN32)
|
||||
SET(MINGW_DLLS ${CMAKE_PREFIX_PATH}/mingw/bin/libstdc++-6.dll ${CMAKE_PREFIX_PATH}/mingw/bin/libgcc_s_dw2-1.dll)
|
||||
INSTALL(PROGRAMS ${MINGW_DLLS} DESTINATION bin)
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
FILE(COPY ${MINGW_DLLS} DESTINATION ${BINDIR_BUILD}
|
||||
# Do permissions matter for windows?
|
||||
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
|
||||
FILE(COPY ${MINGW_DLLS} DESTINATION ${BINDIR_BUILD}
|
||||
# Do permissions matter for windows?
|
||||
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
||||
)
|
||||
ENDIF()
|
||||
# ############################################################
|
||||
# Package creation rules
|
||||
|
25
accounts/C/CMakeLists.txt
Normal file
25
accounts/C/CMakeLists.txt
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(C_DIST ${account_DATA} acctchrt_full.gnucash-xea Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/C)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/C)
|
||||
|
@ -35,33 +35,52 @@ SET(accounts_SUBDIRS
|
||||
zh_TW
|
||||
)
|
||||
|
||||
SET(ACCOUNTS_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/gnucash/accounts)
|
||||
SET(ACCOUNTS_BUILD_DIR ${DATADIR_BUILD}/gnucash/accounts)
|
||||
|
||||
# Most of the account subdirectories that have acctchrt_full.gnucash-xea do not install it. Don't know why.
|
||||
# But these subdirectories do.
|
||||
SET(accounts_fullcharts_SUBDIRS ja nb nl)
|
||||
|
||||
FOREACH(dir ${accounts_SUBDIRS})
|
||||
INSTALL(DIRECTORY ${dir} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/gnucash/accounts
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN acctchrt_full.gnucash-xea EXCLUDE
|
||||
PATTERN README.bas_2012 EXCLUDE)
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
FILE(COPY ${dir} DESTINATION ${DATADIR_BUILD}/gnucash/accounts
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN acctchrt_full.gnucash-xea EXCLUDE
|
||||
PATTERN README.bas_2012 EXCLUDE
|
||||
)
|
||||
ENDIF()
|
||||
ENDFOREACH(dir)
|
||||
|
||||
FOREACH(dir ${accounts_fullcharts_SUBDIRS})
|
||||
INSTALL(DIRECTORY ${dir} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/gnucash/accounts
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN README.bas_2012 EXCLUDE)
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
FILE(COPY ${dir} DESTINATION ${DATADIR_BUILD}/gnucash/accounts
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN README.bas_2012 EXCLUDE
|
||||
)
|
||||
ENDIF()
|
||||
ENDFOREACH(dir)
|
||||
ADD_SUBDIRECTORY(C)
|
||||
ADD_SUBDIRECTORY(cs)
|
||||
ADD_SUBDIRECTORY(da)
|
||||
ADD_SUBDIRECTORY(de_AT)
|
||||
ADD_SUBDIRECTORY(de_CH)
|
||||
ADD_SUBDIRECTORY(de_DE)
|
||||
ADD_SUBDIRECTORY(el_GR)
|
||||
ADD_SUBDIRECTORY(en_GB)
|
||||
ADD_SUBDIRECTORY(es_ES)
|
||||
ADD_SUBDIRECTORY(es_MX)
|
||||
ADD_SUBDIRECTORY(fi_FI)
|
||||
ADD_SUBDIRECTORY(fr_CA)
|
||||
ADD_SUBDIRECTORY(fr_CH)
|
||||
ADD_SUBDIRECTORY(fr_FR)
|
||||
ADD_SUBDIRECTORY(hu_HU)
|
||||
ADD_SUBDIRECTORY(it)
|
||||
ADD_SUBDIRECTORY(ja)
|
||||
ADD_SUBDIRECTORY(ko)
|
||||
ADD_SUBDIRECTORY(lt)
|
||||
ADD_SUBDIRECTORY(lv)
|
||||
ADD_SUBDIRECTORY(nb)
|
||||
ADD_SUBDIRECTORY(nl)
|
||||
ADD_SUBDIRECTORY(pl)
|
||||
ADD_SUBDIRECTORY(pt_BR)
|
||||
ADD_SUBDIRECTORY(pt_PT)
|
||||
ADD_SUBDIRECTORY(ru)
|
||||
ADD_SUBDIRECTORY(sk)
|
||||
ADD_SUBDIRECTORY(sv_AX)
|
||||
ADD_SUBDIRECTORY(sv_FI)
|
||||
ADD_SUBDIRECTORY(sv_SE)
|
||||
ADD_SUBDIRECTORY(tr_TR)
|
||||
ADD_SUBDIRECTORY(zh_CN)
|
||||
ADD_SUBDIRECTORY(zh_HK)
|
||||
ADD_SUBDIRECTORY(zh_TW)
|
||||
|
||||
SET_LOCAL_DIST(dist_list CMakeLists.txt Makefile.am)
|
||||
|
||||
SET(accounts_DIST ${C_DIST} ${CS_DIST} ${DA_DIST} ${DE_AT_DIST} ${DE_CH_DIST} ${DE_DE_DIST} ${EL_GR_DIST}
|
||||
${EN_GB_DIST} ${ES_ES_DIST} ${ES_MX_DIST} ${FI_FI_DIST} ${FR_CA_DIST} ${FR_CH_DIST}
|
||||
${FR_FR_DIST} ${HU_HU_DIST} ${IT_DIST} ${JA_DIST} ${KO_DIST} ${LT_DIST} ${LV_DIST}
|
||||
${NB_DIST} ${NL_DIST} ${PL_DIST} ${PT_BR_DIST} ${PT_PT_DIST} ${RU_DIST} ${SK_DIST}
|
||||
${SV_AX_DIST} ${SV_FI_DIST} ${SV_SE_DIST} ${TR_TR_DIST} ${ZH_CN_DIST}
|
||||
${ZH_HK_DIST} ${ZH_TW_DIST} ${dist_list} PARENT_SCOPE)
|
||||
|
||||
|
21
accounts/cs/CMakeLists.txt
Normal file
21
accounts/cs/CMakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_currency.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(CS_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/cs)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/cs)
|
10
accounts/da/CMakeLists.txt
Normal file
10
accounts/da/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
SET(account_DATA
|
||||
acctchrt_car.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(DA_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/da)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/da)
|
15
accounts/de_AT/CMakeLists.txt
Normal file
15
accounts/de_AT/CMakeLists.txt
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
SET(dist_account_DATA
|
||||
acctchrt_auto.gnucash-xea
|
||||
acctchrt_autoloan.gnucash-xea
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_houseown.gnucash-xea
|
||||
acctchrt_investment.gnucash-xea
|
||||
acctchrt_kids.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(DE_AT_DIST ${dist_account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${dist_account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/de_AT)
|
||||
FILE(COPY ${dist_account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/de_AT)
|
12
accounts/de_CH/CMakeLists.txt
Normal file
12
accounts/de_CH/CMakeLists.txt
Normal file
@ -0,0 +1,12 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_kids.gnucash-xea
|
||||
acctchrt_otherasset.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_chkmu.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(DE_CH_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/de_CH)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/de_CH)
|
20
accounts/de_DE/CMakeLists.txt
Normal file
20
accounts/de_DE/CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
||||
SET(account_DATA
|
||||
acctchrt_auto.gnucash-xea
|
||||
acctchrt_autoloan.gnucash-xea
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_houseown.gnucash-xea
|
||||
acctchrt_investment.gnucash-xea
|
||||
acctchrt_kids.gnucash-xea
|
||||
acctchrt_otherasset.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_studium.gnucash-xea
|
||||
acctchrt_skr03.gnucash-xea
|
||||
acctchrt_wohnungsw.gnucash-xea
|
||||
acctchrt_skr04.gnucash-xea
|
||||
acctchrt_skr49.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(DE_DE_DIST ${account_DATA} acctchrt_full.gnucash-xea Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/de_DE)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/de_DE)
|
9
accounts/el_GR/CMakeLists.txt
Normal file
9
accounts/el_GR/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
SET(account_DATA
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_brokerage.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(EL_GR_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/el_GR)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/el_GR)
|
23
accounts/en_GB/CMakeLists.txt
Normal file
23
accounts/en_GB/CMakeLists.txt
Normal file
@ -0,0 +1,23 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea
|
||||
uk-vat.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(EN_GB_DIST ${account_DATA} acctchrt_full.gnucash-xea Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/en_GB)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/en_GB)
|
21
accounts/es_ES/CMakeLists.txt
Normal file
21
accounts/es_ES/CMakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_currency.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(ES_ES_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/es_ES)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/es_ES)
|
22
accounts/es_MX/CMakeLists.txt
Normal file
22
accounts/es_MX/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_currency.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(ES_MX_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/es_MX)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/es_MX)
|
||||
|
9
accounts/fi_FI/CMakeLists.txt
Normal file
9
accounts/fi_FI/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
SET(account_DATA
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_sbr-xbrl.gnucash-xea
|
||||
acctchrt_ry.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(FI_FI_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/fi_FI)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/fi_FI)
|
21
accounts/fr_CA/CMakeLists.txt
Normal file
21
accounts/fr_CA/CMakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
||||
SET(account_DATA
|
||||
acctchrt_actifsfixes.gnucash-xea
|
||||
acctchrt_automobile.gnucash-xea
|
||||
acctchrt_basecommune.gnucash-xea
|
||||
acctchrt_cdmarchemon.gnucash-xea
|
||||
acctchrt_chequier.gnucash-xea
|
||||
acctchrt_conjointretraite.gnucash-xea
|
||||
acctchrt_conjointrev.gnucash-xea
|
||||
acctchrt_courtage.gnucash-xea
|
||||
acctchrt_etudeemprunt.gnucash-xea
|
||||
acctchrt_garderie.gnucash-xea
|
||||
acctchrt_locataire.gnucash-xea
|
||||
acctchrt_proprietaire.gnucash-xea
|
||||
acctchrt_retraite.gnucash-xea
|
||||
acctchrt_revenus.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(FR_CA_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/fr_CA)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/fr_CA)
|
||||
|
22
accounts/fr_CH/CMakeLists.txt
Normal file
22
accounts/fr_CH/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_currency.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(FR_CH_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/fr_CH)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/fr_CH)
|
22
accounts/fr_FR/CMakeLists.txt
Normal file
22
accounts/fr_FR/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_currency.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(FR_FR_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/fr_FR)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/fr_FR)
|
24
accounts/hu_HU/CMakeLists.txt
Normal file
24
accounts/hu_HU/CMakeLists.txt
Normal file
@ -0,0 +1,24 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
|
||||
SET_DIST_LIST(HU_HU_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/hu_HU)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/hu_HU)
|
||||
|
19
accounts/it/CMakeLists.txt
Normal file
19
accounts/it/CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(IT_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/it)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/it)
|
24
accounts/ja/CMakeLists.txt
Normal file
24
accounts/ja/CMakeLists.txt
Normal file
@ -0,0 +1,24 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_full.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(JA_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/ja)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/ja)
|
||||
|
22
accounts/ko/CMakeLists.txt
Normal file
22
accounts/ko/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(KO_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/ko)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/ko)
|
6
accounts/lt/CMakeLists.txt
Normal file
6
accounts/lt/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
SET(account_DATA acctchrt_business.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(LT_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/lt)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/lt)
|
22
accounts/lv/CMakeLists.txt
Normal file
22
accounts/lv/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(LV_DIST ${account_DATA} acctchrt_full.gnucash-xea Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/lv)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/lv)
|
23
accounts/nb/CMakeLists.txt
Normal file
23
accounts/nb/CMakeLists.txt
Normal file
@ -0,0 +1,23 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_full.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(NB_DIST ${account_DATA} acctchrt_full.gnucash-xea Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/nb)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/nb)
|
9
accounts/nl/CMakeLists.txt
Normal file
9
accounts/nl/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
SET(account_DATA
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_full.gnucash-xea
|
||||
acctchrt_rgs_1.1.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(NL_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/nl)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/nl)
|
22
accounts/pl/CMakeLists.txt
Normal file
22
accounts/pl/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(PL_DIST ${account_DATA} acctchrt_full.gnucash-xea Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/pl)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/pl)
|
22
accounts/pt_BR/CMakeLists.txt
Normal file
22
accounts/pt_BR/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_currency.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(PT_BR_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/pt_BR)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/pt_BR)
|
||||
|
21
accounts/pt_PT/CMakeLists.txt
Normal file
21
accounts/pt_PT/CMakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(PT_PT_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/pt_PT)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/pt_PT)
|
||||
|
11
accounts/ru/CMakeLists.txt
Normal file
11
accounts/ru/CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
SET(account_DATA
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(RU_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/ru)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/ru)
|
||||
|
22
accounts/sk/CMakeLists.txt
Normal file
22
accounts/sk/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_currency.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(SK_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/sk)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/sk)
|
||||
|
10
accounts/sv_AX/CMakeLists.txt
Normal file
10
accounts/sv_AX/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
||||
SET(account_DATA
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_sbr-xbrl.gnucash-xea
|
||||
acctchrt_rf.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(SV_AX_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/sv_AX)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/sv_AX)
|
||||
|
9
accounts/sv_FI/CMakeLists.txt
Normal file
9
accounts/sv_FI/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
SET(account_DATA
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_sbr-xbrl.gnucash-xea
|
||||
acctchrt_rf.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(SV_FI_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/sv_FI)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/sv_FI)
|
8
accounts/sv_SE/CMakeLists.txt
Normal file
8
accounts/sv_SE/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
SET(account_DATA
|
||||
bas_2012.gnucash-xea
|
||||
acctchrt_common.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(SV_SE_DIST ${account_DATA} README.bas_2012 Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/sv_SE)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/sv_SE)
|
14
accounts/tr_TR/CMakeLists.txt
Normal file
14
accounts/tr_TR/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_TEKDUZ.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(TR_TR_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/tr_TR)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/tr_TR)
|
22
accounts/zh_CN/CMakeLists.txt
Normal file
22
accounts/zh_CN/CMakeLists.txt
Normal file
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(ZH_CN_DIST ${account_DATA} acctchrt_full.gnucash-xea Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/zh_CN)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/zn_CN)
|
6
accounts/zh_HK/CMakeLists.txt
Normal file
6
accounts/zh_HK/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
SET(account_DATA acctchrt_business.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(ZH_HK_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/zh_HK)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/zh_HK)
|
6
accounts/zh_TW/CMakeLists.txt
Normal file
6
accounts/zh_TW/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
SET(account_DATA acctchrt_business.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(ZH_TW_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/zh_TW)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/zh_TW)
|
@ -10,6 +10,6 @@ SET(checks_DATA
|
||||
|
||||
INSTALL(FILES ${checks_DATA} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/gnucash/checks)
|
||||
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
FILE(COPY ${checks_DATA} DESTINATION ${DATADIR_BUILD}/gnucash/checks)
|
||||
ENDIF()
|
||||
FILE(COPY ${checks_DATA} DESTINATION ${DATADIR_BUILD}/gnucash/checks)
|
||||
|
||||
SET_DIST_LIST(checks_DIST CMakeLists.txt Makefile.am ${checks_DATA})
|
||||
|
@ -10,22 +10,25 @@ IF (APPLE)
|
||||
ENDIF(APPLE)
|
||||
|
||||
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
SET(CMAKE_COMMAND_TMP "")
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
SET(CMAKE_COMMAND_TMP ${CMAKE_COMMAND} -E env)
|
||||
ENDIF()
|
||||
SET(schema-targets aqb-gschema business-gnome-gschema csv-exp-gschema csv-imp-gschema
|
||||
generic-import-gschema gnome-gschema gnome-utils-gschema ofx-gschema qif-imp-gschema)
|
||||
SET(CMAKE_COMMAND_TMP "")
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
SET(CMAKE_COMMAND_TMP ${CMAKE_COMMAND} -E env)
|
||||
ENDIF()
|
||||
|
||||
SET(SCHEMA_DIRECTORY ${DATADIR_BUILD}/glib-2.0/schemas)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${SCHEMA_DIRECTORY}/gschemas.compiled
|
||||
COMMAND ${CMAKE_COMMAND_TMP} ${GLIB_COMPILE_SCHEMAS} ${SCHEMA_DIRECTORY}
|
||||
DEPENDS ${schema-targets}
|
||||
)
|
||||
SET(schema-targets business-gnome-gschema csv-exp-gschema csv-imp-gschema
|
||||
generic-import-gschema gnome-gschema gnome-utils-gschema ofx-gschema qif-imp-gschema)
|
||||
|
||||
ADD_CUSTOM_TARGET(compiled-schemas ALL DEPENDS ${SCHEMA_DIRECTORY}/gschemas.compiled)
|
||||
IF (WITH_AQBANKING)
|
||||
LIST(APPEND schema_targets aqb-gschema)
|
||||
ENDIF (WITH_AQBANKING)
|
||||
|
||||
SET(SCHEMA_DIRECTORY ${DATADIR_BUILD}/glib-2.0/schemas)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${SCHEMA_DIRECTORY}/gschemas.compiled
|
||||
COMMAND ${CMAKE_COMMAND_TMP} ${GLIB_COMPILE_SCHEMAS} ${SCHEMA_DIRECTORY}
|
||||
DEPENDS ${schema-targets}
|
||||
)
|
||||
|
||||
ENDIF(GNC_BUILD_AS_INSTALL)
|
||||
ADD_CUSTOM_TARGET(compiled-schemas ALL DEPENDS ${SCHEMA_DIRECTORY}/gschemas.compiled)
|
||||
|
||||
SET_DIST_LIST(cmake_DIST CMakeLists.txt README_CMAKE.txt cmake_uninstall.cmake.in)
|
@ -29,10 +29,17 @@ faster that using the default Makefile generator to me.)
|
||||
|
||||
== Scope
|
||||
|
||||
The scope of the current work is to duplicate the `make`,
|
||||
`make check` and `make install` actions as the Autotools system would.
|
||||
Currently, there is no support for `make dist`, `make distcheck` or
|
||||
similar targets. Other limitations include:
|
||||
The scope of the current work is to duplicate these actions as
|
||||
the Autotools system would:
|
||||
|
||||
* make
|
||||
* make check
|
||||
* make install
|
||||
* make uninstall
|
||||
* make dist
|
||||
* make distcheck
|
||||
|
||||
Limitations include:
|
||||
|
||||
* Not all options available in `./configure` have been ported to
|
||||
this CMake system.
|
||||
@ -44,21 +51,11 @@ similar targets. Other limitations include:
|
||||
* The Xcode build only supports the Debug configuration. Others such
|
||||
as Release are not supported yet.
|
||||
|
||||
* Python support has not been ported over.
|
||||
|
||||
* Visual Studio support is out of scope. While CMake supports
|
||||
generating build files for Visual Studio on Windows, it is not
|
||||
likely at this point that either GnuCash or all of its
|
||||
dependencies can be built using the Microsoft compiler tool chain.
|
||||
|
||||
== Known Issues
|
||||
|
||||
* Sometimes the Tip of the Day is empty. I've got a stray
|
||||
carriage return somewhere.
|
||||
|
||||
* Clicking on 'Start AqBanking Wizard' in the AqBanking setup will
|
||||
cause a crash. I have not yet investigated this.
|
||||
|
||||
== Using CMake on Linux, OS X, etc.
|
||||
|
||||
=== Prerequisites
|
||||
@ -71,7 +68,7 @@ will have advice on how to do this.
|
||||
|
||||
You will need to have CMake and optionally Ninja installed, either
|
||||
from distro package repositories or by hand. You need at least version
|
||||
3.1 of CMake.
|
||||
3.0 of CMake.
|
||||
|
||||
=== Running CMake
|
||||
|
||||
@ -190,10 +187,21 @@ directly from the build directory:
|
||||
In you chose to install, you can switch to the install directory and
|
||||
do the same.
|
||||
|
||||
=== Building a Distribution Tarball
|
||||
|
||||
To create a distribution, use the 'dist' and 'distcheck' targets.
|
||||
For ninja, use:
|
||||
|
||||
$ ninja dist
|
||||
$ ninja distcheck
|
||||
|
||||
For Makefiles:
|
||||
|
||||
$ make dist
|
||||
$ make distcheck
|
||||
|
||||
== Using CMake and Ninja on Windows
|
||||
|
||||
|
||||
For Windows, follow the instructions at
|
||||
https://github.com/Gnucash/gnucash-on-windows to the point where you
|
||||
are ready to run install.sh.
|
||||
|
23
cmake/cmake_uninstall.cmake.in
Normal file
23
cmake/cmake_uninstall.cmake.in
Normal file
@ -0,0 +1,23 @@
|
||||
# This is taken from https://cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F
|
||||
|
||||
if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
|
||||
message(FATAL_ERROR "Cannot find install manifest: @CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
|
||||
endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
|
||||
|
||||
file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
|
||||
string(REGEX REPLACE "\n" ";" files "${files}")
|
||||
foreach(file ${files})
|
||||
message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
|
||||
if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
|
||||
exec_program(
|
||||
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
|
||||
OUTPUT_VARIABLE rm_out
|
||||
RETURN_VALUE rm_retval
|
||||
)
|
||||
if(NOT "${rm_retval}" STREQUAL 0)
|
||||
message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
|
||||
endif(NOT "${rm_retval}" STREQUAL 0)
|
||||
else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
|
||||
message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
|
||||
endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
|
||||
endforeach(file)
|
@ -15,26 +15,35 @@ SET(doc_DATA
|
||||
projects.html
|
||||
)
|
||||
|
||||
SET(doc_noinst_DATA
|
||||
build-aix.txt build-solaris.txt CMakeLists.txt gnc-fq-dump.1 gnc-fq-helper.1 gnucash.1.in gtkrc-2.0.gnucash
|
||||
Makefile.am misc-notes.txt README.build-system README.HBCI README.OFX README.translator.txt tip_of_the_day.list.in
|
||||
TRANSLATION_HOWTO)
|
||||
|
||||
INSTALL(FILES ${doc_DATA} DESTINATION share/doc/gnucash)
|
||||
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
FILE(COPY ${doc_DATA} DESTINATION ${DATADIR_BUILD}/doc/gnucash)
|
||||
ENDIF()
|
||||
SET_LOCAL_DIST(doc_DIST_local ${doc_DATA} ${doc_noinst_DATA})
|
||||
SET(doc_DIST ${doc_DIST_local} ${examples_DIST} PARENT_SCOPE)
|
||||
|
||||
FILE(COPY ${doc_DATA} DESTINATION ${DATADIR_BUILD}/doc/gnucash)
|
||||
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND} -E env date +"%B %Y"
|
||||
OUTPUT_VARIABLE DATE
|
||||
OUTPUT_VARIABLE DATE_IN
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
ELSE()
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND date +"%B %Y"
|
||||
OUTPUT_VARIABLE DATE
|
||||
OUTPUT_VARIABLE DATE_IN
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
# Remove any quotes present in the DATE string
|
||||
STRING(REGEX REPLACE "\"" "" DATE "${DATE_IN}")
|
||||
|
||||
# Generate the tip of the day file.
|
||||
|
||||
EXECUTE_PROCESS(
|
||||
@ -58,18 +67,13 @@ FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/tip_of_the_day.list "${FINAL_TOTD}")
|
||||
|
||||
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/tip_of_the_day.list DESTINATION share/gnucash)
|
||||
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
FILE(COPY ${CMAKE_CURRENT_BINARY_DIR}/tip_of_the_day.list
|
||||
DESTINATION ${DATADIR_BUILD}/gnucash)
|
||||
ENDIF()
|
||||
FILE(COPY ${CMAKE_CURRENT_BINARY_DIR}/tip_of_the_day.list
|
||||
DESTINATION ${DATADIR_BUILD}/gnucash)
|
||||
|
||||
# ---
|
||||
|
||||
GNC_CONFIGURE(gnucash.1.in gnucash.1 )
|
||||
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/gnucash.1 DESTINATION share/man/man1)
|
||||
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
FILE(COPY ${CMAKE_CURRENT_BINARY_DIR}/gnucash.1
|
||||
DESTINATION ${DATADIR_BUILD}/gnucash)
|
||||
ENDIF()
|
||||
|
||||
FILE(COPY ${CMAKE_CURRENT_BINARY_DIR}/gnucash.1
|
||||
DESTINATION ${DATADIR_BUILD}/gnucash)
|
@ -22,3 +22,5 @@ SET(examples_DATA
|
||||
)
|
||||
|
||||
INSTALL(FILES ${examples_DATA} DESTINATION share/doc/gnucash)
|
||||
|
||||
SET_DIST_LIST(examples_DIST ${examples_DATA} CMakeLists.txt Makefile.am)
|
||||
|
5
lib/CMakeLists.txt
Normal file
5
lib/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
ADD_SUBDIRECTORY(libc)
|
||||
ADD_SUBDIRECTORY(goffice)
|
||||
|
||||
SET_LOCAL_DIST(lib_DIST_local CMakeLists.txt Makefile.am README)
|
||||
SET(lib_DIST ${lib_DIST_local} ${libc_DIST} ${goffice_DIST} PARENT_SCOPE)
|
14
lib/goffice/CMakeLists.txt
Normal file
14
lib/goffice/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
set(goffice_noinst_HEADERS go-optionmenu.h go-charmap-sel.h go-glib-extras.h)
|
||||
set(goffice_SOURCES go-optionmenu.c go-charmap-sel.c go-glib-extras.c)
|
||||
|
||||
#ADD_LIBRARY(gnc-goffice ${goffice_noinst_HEADERS} ${goffice_SOURCES})
|
||||
|
||||
#TARGET_LINK_LIBRARIES(gnc-goffice ${GTK_LIBS} ${LIBXML2_LIBS})
|
||||
#TARGET_INCLUDE_DIRECTORIES(gnc-goffice PUBLIC ${GTK_CFLAGS} ${LIBXML2_CFLAGS})
|
||||
|
||||
#INSTALL(TARGETS gnc-goffice
|
||||
# LIBRARY DESTINATION lib
|
||||
# ARCHIVE DESTINATION lib
|
||||
# RUNTIME DESTINATION bin)
|
||||
|
||||
SET_DIST_LIST(goffice_DIST CMakeLists.txt Makefile.am ${goffice_noinst_HEADERS} ${goffice_SOURCES})
|
4
lib/libc/CMakeLists.txt
Normal file
4
lib/libc/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
SET(libc_SOURCES libc-missing-noop.c setenv.c strfmon.c strptime.c)
|
||||
SET(libc_HEADERS pow.h setenv.h strfmon.h strptime.h)
|
||||
|
||||
SET_DIST_LIST(libc_DIST CMakeLists.txt Makefile.am ${libc_SOURCES} ${libc_HEADERS})
|
3
macros/CMakeLists.txt
Normal file
3
macros/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
SET_DIST_LIST(macros_DIST ax_pkg_swig.m4 ax_python_devel.m4 ax_swig_python.m4 binreloc.m4
|
||||
compiler-flags.m4 CMakeLists.txt legacy_macros.m4 pkg.m4)
|
@ -1,2 +1,4 @@
|
||||
|
||||
GNC_CONFIGURE(gnucash.spec.in gnucash.spec)
|
||||
|
||||
SET_DIST_LIST(packaging_DIST CMakeLists.txt gnucash.spec.in Makefile.am)
|
@ -1,4 +1,4 @@
|
||||
|
||||
ADD_SUBDIRECTORY(glossary)
|
||||
|
||||
# Set of available languages.
|
||||
SET (TP_LINGUAS az ca cs da eu fa ja nl rw sk sr sv tr uk zh_CN)
|
||||
@ -17,6 +17,15 @@ IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
SET(CMAKE_COMMAND_TMP ${CMAKE_COMMAND} -E env)
|
||||
ENDIF()
|
||||
|
||||
SET(po_SOURCES "")
|
||||
FOREACH(lingua ${ALL_LINGUAS})
|
||||
LIST(APPEND po_SOURCES ${lingua}.po)
|
||||
ENDFOREACH()
|
||||
|
||||
SET_LOCAL_DIST(po_DIST_local ${po_SOURCES} CMakeLists.txt ChangeLog Makevars
|
||||
POTFILES.ignore POTFILES.in POTFILES.skip README check-po.cmake)
|
||||
SET(po_DIST ${po_DIST_local} ${po_glossary_DIST} PARENT_SCOPE)
|
||||
|
||||
FOREACH(lingua ${ALL_LINGUAS})
|
||||
SET(_OUTPUT_FILE ${lingua}.gmo)
|
||||
LIST(APPEND CATALOGS ${_OUTPUT_FILE})
|
||||
@ -24,26 +33,174 @@ FOREACH(lingua ${ALL_LINGUAS})
|
||||
OUTPUT ${_OUTPUT_FILE}
|
||||
COMMAND ${CMAKE_COMMAND_TMP} ${MSGFMT} -o ${_OUTPUT_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/${lingua}.po
|
||||
)
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
SET(_BUILD_FILE_DIR ${DATADIR_BUILD}/locale/${lingua}/LC_MESSAGES)
|
||||
MAKE_DIRECTORY(${_BUILD_FILE_DIR})
|
||||
SET(_BUILD_FILE ${_BUILD_FILE_DIR}/gnucash.gmo)
|
||||
LIST(APPEND BUILD_CATALOGS ${_BUILD_FILE})
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${_BUILD_FILE}
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/${lingua}.gmo ${_BUILD_FILE}
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_OUTPUT_FILE}
|
||||
#APPEND
|
||||
SET(_BUILD_FILE_DIR ${DATADIR_BUILD}/locale/${lingua}/LC_MESSAGES)
|
||||
MAKE_DIRECTORY(${_BUILD_FILE_DIR})
|
||||
SET(_BUILD_FILE ${_BUILD_FILE_DIR}/gnucash.gmo)
|
||||
LIST(APPEND BUILD_CATALOGS ${_BUILD_FILE})
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${_BUILD_FILE}
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/${lingua}.gmo ${_BUILD_FILE}
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_OUTPUT_FILE}
|
||||
#APPEND
|
||||
)
|
||||
ENDIF()
|
||||
ENDFOREACH(lingua)
|
||||
|
||||
ADD_CUSTOM_TARGET(po-gmo ALL DEPENDS ${CATALOGS})
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
ADD_CUSTOM_TARGET(po-gmo-build ALL DEPENDS ${BUILD_CATALOGS})
|
||||
ENDIF()
|
||||
ADD_CUSTOM_TARGET(po-gmo-build ALL DEPENDS ${BUILD_CATALOGS})
|
||||
|
||||
|
||||
FOREACH(lingua ${ALL_LINGUAS})
|
||||
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${lingua}.gmo RENAME gnucash.mo DESTINATION share/locale/${lingua}/LC_MESSAGES)
|
||||
ENDFOREACH(lingua)
|
||||
|
||||
FUNCTION(READ_FILE_REMOVING_COMMENTS OUTPUT PATH)
|
||||
SET(RESULT "")
|
||||
FILE(STRINGS "${PATH}" LINES_IN)
|
||||
FOREACH(line ${LINES_IN})
|
||||
STRING(REGEX REPLACE "#.*" "" line2 ${line})
|
||||
LIST(APPEND RESULT ${line2})
|
||||
ENDFOREACH()
|
||||
SET(${OUTPUT} ${RESULT} PARENT_SCOPE)
|
||||
ENDFUNCTION()
|
||||
|
||||
|
||||
FUNCTION(MAKE_GNUCASH_POTFILES)
|
||||
|
||||
SET(IGNORE_PATTERNS "gw-" "test" "experimental" "python-bindings" "swig-.*\\.c")
|
||||
|
||||
# Create a list of candidate translation files
|
||||
FILE(GLOB_RECURSE FILES_IN RELATIVE ${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/*.c ${CMAKE_SOURCE_DIR}/*.cpp ${CMAKE_SOURCE_DIR}/*.glade ${CMAKE_SOURCE_DIR}/*.desktop.in
|
||||
${CMAKE_SOURCE_DIR}/*.keys.in ${CMAKE_SOURCE_DIR}/*.gschema.xml.in.in ${CMAKE_SOURCE_DIR}/*.scm)
|
||||
|
||||
# Only consider files in the src/ directory. Also check against list of ignore patterns
|
||||
SET(FILES "")
|
||||
FOREACH(path ${FILES_IN})
|
||||
STRING(REGEX MATCH "^src" IS_SRC ${path})
|
||||
IF (IS_SRC)
|
||||
SET(IS_IGNORED FALSE)
|
||||
FOREACH(pattern ${IGNORE_PATTERNS})
|
||||
STRING(REGEX MATCH ${pattern} YES_IGNORE ${path})
|
||||
IF (YES_IGNORE)
|
||||
SET(IS_IGNORED TRUE)
|
||||
ENDIF()
|
||||
ENDFOREACH(pattern)
|
||||
IF (NOT IS_IGNORED)
|
||||
LIST(APPEND FILES ${path})
|
||||
ENDIF(NOT IS_IGNORED)
|
||||
ENDIF(IS_SRC)
|
||||
ENDFOREACH(path)
|
||||
|
||||
# Read in list of paths to skip from POTFILES.{skip,ignore}
|
||||
READ_FILE_REMOVING_COMMENTS(SKIP_LINES POTFILES.skip)
|
||||
READ_FILE_REMOVING_COMMENTS(IGNORE_LINES POTFILES.ignore)
|
||||
|
||||
# Remove the paths that are skipped or ignored
|
||||
FOREACH(path ${SKIP_LINES} ${IGNORE_LINES})
|
||||
list(REMOVE_ITEM FILES ${path})
|
||||
ENDFOREACH()
|
||||
|
||||
|
||||
# CMake sorting different from UNIX sorting. Sort the files
|
||||
# here so it is easier for me to compare to the autotools
|
||||
# generated POTFILES.in
|
||||
STRING(REPLACE ";" "\n" SORT_IN "${FILES}")
|
||||
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in.in "${SORT_IN}")
|
||||
|
||||
EXECUTE_PROCESS(COMMAND "sort"
|
||||
INPUT_FILE ${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in.in
|
||||
OUTPUT_VARIABLE POTFILES_IN
|
||||
)
|
||||
STRING(REPLACE "\n" ";" POTFILES "${POTFILES_IN}")
|
||||
|
||||
# Write out the final list.
|
||||
# intltool-update insists that this file be in the source directory. :-(
|
||||
SET(POTFILES_IN_PATH ${CMAKE_CURRENT_SOURCE_DIR}/POTFILES.in)
|
||||
FILE(WRITE ${POTFILES_IN_PATH} "# This is a list of files which contain tranlatable strings.
|
||||
# This file was generated by ../make-gnucash-potfiles.
|
||||
")
|
||||
|
||||
FOREACH(path ${POTFILES})
|
||||
STRING(REGEX MATCH gschema.xml.in.in IS_GSCHEMA ${path})
|
||||
IF(IS_GSCHEMA AND NOT WIN32)
|
||||
# Force parse type for gsettings files
|
||||
SET(path "[type: gettext/gsettings]${path}")
|
||||
ENDIF()
|
||||
FILE(APPEND ${POTFILES_IN_PATH} "${path}\n")
|
||||
ENDFOREACH()
|
||||
|
||||
# These are also added, even though they are outside of src/
|
||||
FILE(APPEND ${POTFILES_IN_PATH} "src/gnome/gnucash.appdata.xml.in
|
||||
src/gnome/gnucash.desktop.in.in
|
||||
src/libqof/qof/qofbookslots.h
|
||||
doc/tip_of_the_day.list.in
|
||||
lib/goffice/go-charmap-sel.c
|
||||
lib/goffice/go-optionmenu.c
|
||||
")
|
||||
|
||||
ENDFUNCTION()
|
||||
|
||||
find_program(INTLTOOL_UPDATE NAMES intltool-update)
|
||||
IF (${INTLTOOL_UPDATE} STREQUAL "INTLTOOL_UPDATE-NOTFOUND")
|
||||
MESSAGE(FATAL_ERROR "Can't find the 'intltool-update' program.")
|
||||
ENDIF ()
|
||||
|
||||
IF(BUILDING_FROM_VCS)
|
||||
|
||||
MAKE_GNUCASH_POTFILES()
|
||||
|
||||
find_program(INTLTOOL_EXTRACT NAMES intltool-extract)
|
||||
find_program(XGETTEXT xgettext)
|
||||
|
||||
IF (${INTLTOOL_EXTRACT} STREQUAL "INTLTOOL_EXTRACT-NOTFOUND")
|
||||
MESSAGE(FATAL_ERROR "Can't find the 'intltool-extract' program.")
|
||||
ENDIF ()
|
||||
|
||||
IF (${XGETTEXT} STREQUAL "XGETTEXT-NOTFOUND")
|
||||
MESSAGE(FATAL_ERROR "Can't find the 'xgettext' program.")
|
||||
ENDIF ()
|
||||
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1 AND NOT WIN32)
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND_TMP} INTLTOOL_EXTRACT=${INTLTOOL_EXTRACT} XGETTEXT=${XGETTEXT} ${INTLTOOL_UPDATE} --gettext-package ${PACKAGE} --pot
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
RESULT_VARIABLE GNUCASH_POT_RESULT
|
||||
)
|
||||
IF(NOT ${GNUCASH_POT_RESULT} STREQUAL "0")
|
||||
MESSAGE(FATAL_ERROR "Error when creating gnucash.pot: ${GNUCASH_POT_RESULT}")
|
||||
ENDIF()
|
||||
ELSE()
|
||||
CONFIGURE_FILE(make-gnucash-pot.sh.in make-gnucash-pot.sh)
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${SHELL} ${CMAKE_CURRENT_BINARY_DIR}/make-gnucash-pot.sh
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
RESULT_VARIABLE GNUCASH_POT_RESULT_SHELL
|
||||
)
|
||||
IF(NOT ${GNUCASH_POT_RESULT_SHELL} STREQUAL "0")
|
||||
MESSAGE(FATAL_ERROR "Error when creating gnucash.pot from shell script: ${GNUCASH_POT_RESULT_SHELL}")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
IF (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/gnucash.pot)
|
||||
MESSAGE(FATAL_ERROR "POT file '${CMAKE_CURRENT_SOURCE_DIR}/gnucash.pot' was not successfully created.")
|
||||
ENDIF()
|
||||
|
||||
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND} -E copy gnucash.pot ${CMAKE_CURRENT_BINARY_DIR}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND} -E remove gnucash.pot
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
ENDIF()
|
||||
|
||||
ADD_CUSTOM_TARGET(check-po
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-D INTLTOOL_UPDATE=${INTLTOOL_UPDATE}
|
||||
-D PO_DIR=${CMAKE_CURRENT_SOURCE_DIR}
|
||||
-P check-po.cmake
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
@ -1,12 +1,5 @@
|
||||
# This is a list of files which contain translatable strings.
|
||||
# This is a list of files which contain tranlatable strings.
|
||||
# This file was generated by ../make-gnucash-potfiles.
|
||||
lib/goffice/go-charmap-sel.c
|
||||
lib/goffice/go-glib-extras.c
|
||||
lib/goffice/go-optionmenu.c
|
||||
lib/libc/libc-missing-noop.c
|
||||
lib/libc/setenv.c
|
||||
lib/libc/strfmon.c
|
||||
lib/libc/strptime.c
|
||||
src/app-utils/app-utils.scm
|
||||
src/app-utils/business-helpers.c
|
||||
src/app-utils/business-options.c
|
||||
@ -88,6 +81,7 @@ src/backend/xml/gnc-freqspec-xml-v2.cpp
|
||||
src/backend/xml/gnc-invoice-xml-v2.cpp
|
||||
src/backend/xml/gnc-job-xml-v2.cpp
|
||||
src/backend/xml/gnc-lot-xml-v2.cpp
|
||||
src/backend/xml/gncmod-backend-xml.cpp
|
||||
src/backend/xml/gnc-order-xml-v2.cpp
|
||||
src/backend/xml/gnc-owner-xml-v2.cpp
|
||||
src/backend/xml/gnc-pricedb-xml-v2.cpp
|
||||
@ -211,8 +205,23 @@ src/engine/SX-book.c
|
||||
src/engine/SX-ttinfo.c
|
||||
src/engine/Transaction.c
|
||||
src/engine/TransLog.c
|
||||
src/gnc/AccountItemModel.cpp
|
||||
src/gnc/AccountSelectionDelegate.cpp
|
||||
src/gnc/Cmd.cpp
|
||||
src/gnc/dashboard.cpp
|
||||
src/gnc/fpo/FPO.cpp
|
||||
src/gnc/fpo/ViewletModel.cpp
|
||||
src/gnc/fpo/ViewletView.cpp
|
||||
src/gnc/main.cpp
|
||||
src/gnc/mainwindow.cpp
|
||||
src/gnc/mainwindow-file.cpp
|
||||
src/gnc-module/gnc-module.c
|
||||
src/gnc-module/gnc-module.scm
|
||||
src/gnc/QofEventWrapper.cpp
|
||||
src/gnc/RecentFileMenu.cpp
|
||||
src/gnc/Session.cpp
|
||||
src/gnc/SplitListModel.cpp
|
||||
src/gnc/SplitListView.cpp
|
||||
src/gnome/assistant-acct-period.c
|
||||
src/gnome/assistant-hierarchy.c
|
||||
src/gnome/assistant-loan.c
|
||||
@ -279,10 +288,6 @@ src/gnome/gtkbuilder/gnc-plugin-page-register.glade
|
||||
src/gnome/gtkbuilder/window-autoclear.glade
|
||||
src/gnome/gtkbuilder/window-reconcile.glade
|
||||
src/gnome/reconcile-view.c
|
||||
src/gnome/top-level.c
|
||||
src/gnome/window-autoclear.c
|
||||
src/gnome/window-reconcile2.c
|
||||
src/gnome/window-reconcile.c
|
||||
src/gnome-search/dialog-search.c
|
||||
src/gnome-search/dialog-search.glade
|
||||
src/gnome-search/gnc-general-search.c
|
||||
@ -297,6 +302,7 @@ src/gnome-search/search-int64.c
|
||||
src/gnome-search/search-numeric.c
|
||||
src/gnome-search/search-reconciled.c
|
||||
src/gnome-search/search-string.c
|
||||
src/gnome/top-level.c
|
||||
src/gnome-utils/account-quickfill.c
|
||||
src/gnome-utils/assistant-xml-encoding.c
|
||||
src/gnome-utils/cursors.c
|
||||
@ -399,6 +405,9 @@ src/gnome-utils/print-session.c
|
||||
src/gnome-utils/search-param.c
|
||||
src/gnome-utils/tree-view-utils.c
|
||||
src/gnome-utils/window-main-summarybar.c
|
||||
src/gnome/window-autoclear.c
|
||||
src/gnome/window-reconcile2.c
|
||||
src/gnome/window-reconcile.c
|
||||
src/html/gnc-html.c
|
||||
src/html/gnc-html-factory.c
|
||||
src/html/gnc-html-history.c
|
||||
@ -464,9 +473,6 @@ src/import-export/ofx/gnc-ofx-import.c
|
||||
src/import-export/ofx/gnc-ofx-kvp.c
|
||||
src/import-export/ofx/gnc-plugin-ofx.c
|
||||
[type: gettext/gsettings]src/import-export/ofx/gschemas/org.gnucash.dialogs.import.ofx.gschema.xml.in.in
|
||||
src/import-export/qif/qif-context.c
|
||||
src/import-export/qif/qif-file.c
|
||||
src/import-export/qif/qif-objects.c
|
||||
src/import-export/qif-imp/assistant-qif-import.c
|
||||
src/import-export/qif-imp/assistant-qif-import.glade
|
||||
src/import-export/qif-imp/dialog-account-picker.c
|
||||
@ -483,6 +489,9 @@ src/import-export/qif-imp/qif-objects.scm
|
||||
src/import-export/qif-imp/qif-parse.scm
|
||||
src/import-export/qif-imp/qif-to-gnc.scm
|
||||
src/import-export/qif-imp/qif-utils.scm
|
||||
src/import-export/qif/qif-context.c
|
||||
src/import-export/qif/qif-file.c
|
||||
src/import-export/qif/qif-objects.c
|
||||
src/libqof/qof/gnc-aqbanking-templates.cpp
|
||||
src/libqof/qof/gnc-date.cpp
|
||||
src/libqof/qof/gnc-datetime.cpp
|
||||
@ -508,6 +517,16 @@ src/libqof/qof/qofsession.cpp
|
||||
src/libqof/qof/qof-string-cache.cpp
|
||||
src/libqof/qof/qofutil.cpp
|
||||
src/libqof/qof/qof-win32.cpp
|
||||
src/optional/gtkmm/gncmm/Account.cpp
|
||||
src/optional/gtkmm/gncmm/Book.cpp
|
||||
src/optional/gtkmm/gncmm/Commodity.cpp
|
||||
src/optional/gtkmm/gncmm/GncInstance.cpp
|
||||
src/optional/gtkmm/gncmm/Numeric.cpp
|
||||
src/optional/gtkmm/gncmm/Split.cpp
|
||||
src/optional/gtkmm/gncmm/Transaction.cpp
|
||||
src/optional/gtkmm/gncmm/wrap_init.cpp
|
||||
src/optional/gtkmm/gncmod-gtkmm.cpp
|
||||
src/optional/gtkmm/gnc-plugin-gtkmm.cpp
|
||||
src/plugins/bi_import/dialog-bi-import.c
|
||||
src/plugins/bi_import/dialog-bi-import-gui.c
|
||||
src/plugins/bi_import/dialog-bi-import-helper.c
|
||||
@ -681,3 +700,5 @@ src/gnome/gnucash.appdata.xml.in
|
||||
src/gnome/gnucash.desktop.in.in
|
||||
src/libqof/qof/qofbookslots.h
|
||||
doc/tip_of_the_day.list.in
|
||||
lib/goffice/go-charmap-sel.c
|
||||
lib/goffice/go-optionmenu.c
|
||||
|
23
po/check-po.cmake
Normal file
23
po/check-po.cmake
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
# Run intltool-update -m to check for missing files in POTFILES.in
|
||||
# We detect failure by looking for the presence of a 'missing' file.
|
||||
|
||||
# Intltool returns a zero status whether or not the check failed.
|
||||
|
||||
FILE(REMOVE ${PO_DIR}/missing)
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND} -E env ${INTLTOOL_UPDATE} -m
|
||||
WORKING_DIRECTORY ${PO_DIR}
|
||||
)
|
||||
ELSE()
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${INTLTOOL_UPDATE} -m
|
||||
WORKING_DIRECTORY ${PO_DIR}
|
||||
RESULT_VARIABLE UPDATE_RESULT
|
||||
)
|
||||
MESSAGE("UPDATE_RESULT = ${UPDATE_RESULT}")
|
||||
ENDIF()
|
||||
IF (EXISTS ${PO_DIR}/missing)
|
||||
MESSAGE(FATAL_ERROR "POTFILES.in is missing files. See 'missing' in ${PO_DIR}")
|
||||
ENDIF()
|
3
po/glossary/CMakeLists.txt
Normal file
3
po/glossary/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
SET_DIST_LIST(po_glossary_DIST CMakeLists.txt bg.po ca.po da.po de.po el.po es_NI-policy.txt es.po fr.po gnc-glossary.txt he.po
|
||||
hu.po it.po nb.po nl.po pl.po pt_BR.po pt.po ru.po rw.po sk.po sv.po txt-to-pot.sh vi.po zh_CN.po zh_TW.po)
|
7
po/make-gnucash-pot.sh.in
Normal file
7
po/make-gnucash-pot.sh.in
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
INTLTOOL_EXTRACT=@INTLTOOL_EXTRACT@
|
||||
XGETTEXT=@XGETTEXT@
|
||||
INTLTOOL_UPDATE=@INTLTOOL_UPDATE@
|
||||
SOURCE_DIR=@CMAKE_CURRENT_SOURCE_DIR@
|
||||
PACKAGE=@PACKAGE@
|
||||
cd $SOURCE_DIR && $INTLTOOL_UPDATE --gettext-package $PACKAGE --pot
|
@ -123,14 +123,12 @@ ADD_DEFINITIONS (-DHAVE_CONFIG_H)
|
||||
SET (CONFIG_H ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
||||
CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake.in ${CONFIG_H})
|
||||
|
||||
SET (SWIG_RUNTIME_H ${CMAKE_CURRENT_BINARY_DIR}/swig-runtime.h)
|
||||
IF (BUILDING_FROM_VCS)
|
||||
SET (SWIG_RUNTIME_H ${CMAKE_CURRENT_BINARY_DIR}/swig-runtime.h)
|
||||
ELSE()
|
||||
SET (SWIG_RUNTIME_H ${CMAKE_CURRENT_SOURCE_DIR}/swig-runtime.h)
|
||||
ENDIF()
|
||||
|
||||
#ADD_CUSTOM_COMMAND (
|
||||
# OUTPUT ${SWIG_RUNTIME_H}
|
||||
# DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
# COMMAND ${SWIG_EXECUTABLE} -guile -external-runtime ${SWIG_RUNTIME_H}
|
||||
#)
|
||||
# ############################################################
|
||||
|
||||
SET(SCHEME_INSTALLED_SOURCE_DIR ${CMAKE_INSTALL_PREFIX}/share/gnucash/scm)
|
||||
SET(SCHEME_INSTALLED_CACHE_DIR ${CMAKE_INSTALL_PREFIX}/lib/gnucash/scm/ccache/${GUILE_EFFECTIVE_VERSION})
|
||||
@ -140,42 +138,48 @@ ADD_SUBDIRECTORY (libqof)
|
||||
ADD_SUBDIRECTORY (core-utils)
|
||||
ADD_SUBDIRECTORY (gnc-module)
|
||||
ADD_SUBDIRECTORY (engine)
|
||||
ADD_SUBDIRECTORY (backend/xml)
|
||||
ADD_SUBDIRECTORY (backend)
|
||||
ADD_SUBDIRECTORY (app-utils)
|
||||
ADD_SUBDIRECTORY (import-export)
|
||||
IF (WITH_SQL)
|
||||
ADD_SUBDIRECTORY (backend/dbi)
|
||||
ADD_SUBDIRECTORY (backend/sql)
|
||||
ENDIF (WITH_SQL)
|
||||
|
||||
IF (WITH_GNUCASH)
|
||||
ADD_SUBDIRECTORY (bin)
|
||||
ADD_SUBDIRECTORY (business/business-ledger)
|
||||
ADD_SUBDIRECTORY (business/business-gnome)
|
||||
ADD_SUBDIRECTORY (doc/design)
|
||||
ADD_SUBDIRECTORY (business)
|
||||
ADD_SUBDIRECTORY (cmake_modules)
|
||||
ADD_SUBDIRECTORY (debug)
|
||||
ADD_SUBDIRECTORY (doc)
|
||||
ADD_SUBDIRECTORY (gnome)
|
||||
ADD_SUBDIRECTORY (gnome-utils)
|
||||
ADD_SUBDIRECTORY (gnome-search)
|
||||
ADD_SUBDIRECTORY (html)
|
||||
ADD_SUBDIRECTORY (optional/python-bindings)
|
||||
ADD_SUBDIRECTORY (plugins/bi_import)
|
||||
ADD_SUBDIRECTORY (plugins/customer_import)
|
||||
ADD_SUBDIRECTORY (optional)
|
||||
ADD_SUBDIRECTORY (plugins)
|
||||
ADD_SUBDIRECTORY (pixmaps)
|
||||
IF (WITH_PYTHON)
|
||||
ADD_SUBDIRECTORY (python)
|
||||
ENDIF()
|
||||
ADD_SUBDIRECTORY (quotes)
|
||||
ADD_SUBDIRECTORY (register/ledger-core)
|
||||
ADD_SUBDIRECTORY (register/register-core)
|
||||
ADD_SUBDIRECTORY (register/register-gnome)
|
||||
ADD_SUBDIRECTORY (register)
|
||||
ADD_SUBDIRECTORY(report)
|
||||
ADD_SUBDIRECTORY (scm)
|
||||
ADD_SUBDIRECTORY (tax/us)
|
||||
ADD_SUBDIRECTORY (tax)
|
||||
ADD_SUBDIRECTORY (test-core)
|
||||
ENDIF (WITH_GNUCASH)
|
||||
|
||||
IF (WITH_CUTECASH)
|
||||
ADD_SUBDIRECTORY (optional/gtkmm)
|
||||
ADD_SUBDIRECTORY (gnc)
|
||||
ENDIF (WITH_CUTECASH)
|
||||
|
||||
SET(src_EXTRA_DIST
|
||||
base-typemaps.i
|
||||
config.h.cmake.in
|
||||
gnc-test-env.pl
|
||||
guile-mappings.h
|
||||
platform.h
|
||||
README
|
||||
README.modules)
|
||||
|
||||
SET_LOCAL_DIST(src_DIST_local CMakeLists.txt Makefile.am ${src_EXTRA_DIST})
|
||||
|
||||
SET(src_DIST ${src_DIST_local} ${app_utils_DIST} ${backend_DIST} ${bin_DIST} ${business_DIST} ${cmake_modules_DIST}
|
||||
${core_utils_DIST} ${debug_DIST} ${doc_DIST} ${engine_DIST} ${gnc_module_DIST} ${gnome_DIST} ${gnome_search_DIST}
|
||||
${gnome_utils_DIST} ${html_DIST} ${import_export_DIST} ${libqof_DIST} ${optional_DIST} ${plugins_DIST} ${pixmaps_DIST} ${python_DIST}
|
||||
${quotes_DIST} ${register_DIST} ${report_DIST} ${scm_DIST} ${tax_DIST} ${test_core_DIST} PARENT_SCOPE)
|
@ -36,10 +36,11 @@ SET (app_utils_HEADERS
|
||||
|
||||
)
|
||||
|
||||
|
||||
IF (BUILDING_FROM_VCS)
|
||||
# Command to generate the swig-app-utils.c wrapper file
|
||||
SET (SWIG_APP_UTILS_GUILE_C ${CMAKE_CURRENT_BINARY_DIR}/swig-app-utils-guile.c)
|
||||
GNC_ADD_SWIG_COMMAND (${SWIG_APP_UTILS_GUILE_C} ${CMAKE_CURRENT_SOURCE_DIR}/app-utils.i)
|
||||
GNC_ADD_SWIG_COMMAND (swig-apputils-guile-c ${SWIG_APP_UTILS_GUILE_C} ${CMAKE_CURRENT_SOURCE_DIR}/app-utils.i)
|
||||
SET (SWIG_APP_UTILS_PYTHON_C ${CMAKE_CURRENT_BINARY_DIR}/swig-app-utils-python.c)
|
||||
GNC_ADD_SWIG_PYTHON_COMMAND (swig-app-utils-python ${SWIG_APP_UTILS_PYTHON_C} ${CMAKE_CURRENT_SOURCE_DIR}/app-utils.i)
|
||||
ELSE()
|
||||
@ -73,7 +74,6 @@ SET (app_utils_SOURCES
|
||||
gncmod-app-utils.c
|
||||
guile-util.c
|
||||
option-util.c
|
||||
${SWIG_APP_UTILS_GUILE_C}
|
||||
)
|
||||
|
||||
SET_SOURCE_FILES_PROPERTIES (${app_utils_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
|
||||
@ -89,7 +89,8 @@ IF (WIN32)
|
||||
LIST(APPEND app_utils_ALL_INCLUDES ${HTMLHELP_INCLUDE_PATH})
|
||||
ENDIF()
|
||||
|
||||
ADD_LIBRARY (gncmod-app-utils ${app_utils_ALL_SOURCES})
|
||||
|
||||
ADD_LIBRARY (gncmod-app-utils ${app_utils_ALL_SOURCES} ${SWIG_APP_UTILS_GUILE_C})
|
||||
TARGET_LINK_LIBRARIES(gncmod-app-utils ${app_utils_ALL_LIBRARIES})
|
||||
|
||||
TARGET_INCLUDE_DIRECTORIES (gncmod-app-utils
|
||||
@ -126,16 +127,20 @@ ENDIF()
|
||||
|
||||
INSTALL(FILES ${app_utils_HEADERS} DESTINATION include/gnucash)
|
||||
|
||||
FILE(READ ${CMAKE_SOURCE_DIR}/src/import-export/ofx/migratable-prefs-ofx.xml MIGRATABLE_PREFS_OFX)
|
||||
FILE(READ ${CMAKE_SOURCE_DIR}/src/import-export/aqb/migratable-prefs-aqbanking.xml MIGRATABLE_PREFS_AQBANKING)
|
||||
|
||||
SET(MIGRATABLE_PREFS_XML ${CMAKE_CURRENT_BINARY_DIR}/migratable-prefs.xml)
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
SET(MIGRATABLE_PREFS_XML ${DATADIR_BUILD}/gnucash/migratable-prefs.xml)
|
||||
FILE(COPY make-prefs-migration-script.xsl DESTINATION ${DATADIR_BUILD}/gnucash)
|
||||
IF (WITH_OFX)
|
||||
FILE(READ ${CMAKE_SOURCE_DIR}/src/import-export/ofx/migratable-prefs-ofx.xml MIGRATABLE_PREFS_OFX)
|
||||
ENDIF()
|
||||
|
||||
IF (WITH_AQBANKING)
|
||||
FILE(READ ${CMAKE_SOURCE_DIR}/src/import-export/aqb/migratable-prefs-aqbanking.xml MIGRATABLE_PREFS_AQBANKING)
|
||||
ENDIF()
|
||||
|
||||
SET(MIGRATABLE_PREFS_XML ${DATADIR_BUILD}/gnucash/migratable-prefs.xml)
|
||||
FILE(COPY make-prefs-migration-script.xsl DESTINATION ${DATADIR_BUILD}/gnucash)
|
||||
|
||||
CONFIGURE_FILE(migratable-prefs.xml.in ${MIGRATABLE_PREFS_XML})
|
||||
# This configure_file is to generate the file for autotools
|
||||
CONFIGURE_FILE(migratable-prefs.xml.in migratable-prefs.xml)
|
||||
|
||||
INSTALL(FILES ${MIGRATABLE_PREFS_XML} DESTINATION share/gnucash)
|
||||
INSTALL(FILES make-prefs-migration-script.xsl DESTINATION share/gnucash)
|
||||
@ -208,3 +213,9 @@ GNC_ADD_SCHEME_TARGETS(scm-app-utils-3
|
||||
)
|
||||
|
||||
ADD_CUSTOM_TARGET(scm-app-utils ALL DEPENDS scm-app-utils-3 scm-app-utils-2 scm-app-utils-1 scm-gettext)
|
||||
|
||||
SET_LOCAL_DIST(app_utils_DIST_local
|
||||
${app_utils_ALL_SOURCES} gettext.scm ${app_utils_SCHEME_1} ${app_utils_SCHEME_2} ${app_utils_SCHEME_3}
|
||||
app-utils.i CMakeLists.txt gnc-help-utils.c Makefile.am
|
||||
make-prefs-migration-script.xsl migratable-prefs.xml.in README)
|
||||
SET(app_utils_DIST ${app_utils_DIST_local} ${test_app_utils_DIST} PARENT_SCOPE)
|
||||
|
@ -26,3 +26,8 @@ GNC_ADD_TEST_WITH_GUILE(test-scm-query-string test-scm-query-string.cpp
|
||||
ADD_APP_UTILS_TEST(test-sx test-sx.cpp)
|
||||
|
||||
GNC_ADD_SCHEME_TEST(scm-test-load-module test-load-module.in)
|
||||
|
||||
CONFIGURE_FILE(test-load-module.in test-load-module @ONLY)
|
||||
|
||||
SET_DIST_LIST(test_app_utils_DIST CMakeLists.txt Makefile.am test-exp-parser.c test-link-module.c test-load-module.in
|
||||
test-print-parse-amount.cpp test-print-queries.cpp test-scm-query-string.cpp test-sx.cpp)
|
11
src/backend/CMakeLists.txt
Normal file
11
src/backend/CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
ADD_SUBDIRECTORY(xml)
|
||||
IF (WITH_SQL)
|
||||
ADD_SUBDIRECTORY (dbi)
|
||||
ADD_SUBDIRECTORY (sql)
|
||||
ENDIF (WITH_SQL)
|
||||
|
||||
|
||||
|
||||
SET_LOCAL_DIST(backend_DIST_local CMakeLists.txt Makefile.am)
|
||||
SET(backend_DIST ${backend_DIST_local} ${backend_dbi_DIST} ${backend_sql_DIST} ${backend_xml_DIST} PARENT_SCOPE)
|
@ -17,6 +17,10 @@ SET (backend_dbi_noinst_HEADERS
|
||||
gnc-dbiprovider.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})
|
||||
|
||||
|
@ -23,6 +23,10 @@ SET(test_dbi_backend_SOURCES
|
||||
../gnc-dbisqlresult.cpp
|
||||
)
|
||||
|
||||
SET(test_dbi_backend_HEADERS test-dbi-business-stuff.h test-dbi-stuff.h)
|
||||
|
||||
SET_DIST_LIST(test_dbi_backend_DIST ${test_dbi_backend_SOURCES} ${test_dbi_backend_HEADERS} test-dbi.xml CMakeLists.txt Makefile.am)
|
||||
|
||||
# This test does not work on Win32
|
||||
IF (NOT WIN32)
|
||||
GNC_ADD_TEST(test-backend-dbi "${test_dbi_backend_SOURCES}"
|
||||
|
@ -58,6 +58,9 @@ SET (backend_sql_noinst_HEADERS
|
||||
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})
|
||||
|
||||
|
@ -8,16 +8,19 @@ SET(BACKEND_SQL_TEST_INCLUDE_DIRS
|
||||
${GLIB2_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
SET(test_backend_sql_SOURCES test-sqlbe.cpp utest-gnc-backend-sql.cpp)
|
||||
|
||||
SET(BACKEND_SQL_TEST_LIBS gnc-backend-sql gncmod-engine gnc-qof test-core)
|
||||
|
||||
SET_DIST_LIST(test_backend_sql_DIST ${test_backend_sql_SOURCES} CMakeLists.txt
|
||||
Makefile.am test-column-types.cpp)
|
||||
|
||||
# This test does not actually do anything.
|
||||
GNC_ADD_TEST(test-column-types test-column-types.cpp
|
||||
BACKEND_SQL_TEST_INCLUDE_DIRS BACKEND_SQL_TEST_LIBS
|
||||
)
|
||||
|
||||
|
||||
|
||||
GNC_ADD_TEST(test-sqlbe "test-sqlbe.cpp;utest-gnc-backend-sql.cpp"
|
||||
GNC_ADD_TEST(test-sqlbe "${test_backend_sql_SOURCES}"
|
||||
BACKEND_SQL_TEST_INCLUDE_DIRS BACKEND_SQL_TEST_LIBS
|
||||
)
|
||||
TARGET_COMPILE_DEFINITIONS(test-sqlbe PRIVATE TESTPROG=test_sqlbe)
|
@ -2,10 +2,6 @@
|
||||
|
||||
ADD_SUBDIRECTORY(test)
|
||||
|
||||
# Command to generate the swig-engine.c wrapper file
|
||||
SET (SWIG_GNC_MODULE_C ${CMAKE_CURRENT_BINARY_DIR}/swig-gnc-module.c)
|
||||
GNC_ADD_SWIG_COMMAND (${SWIG_GNC_MODULE_C} ${CMAKE_CURRENT_SOURCE_DIR}/gnc-module.i)
|
||||
|
||||
SET (backend_xml_utils_noinst_HEADERS
|
||||
gnc-backend-xml.h
|
||||
gnc-xml.h
|
||||
@ -73,6 +69,10 @@ SET (backend_xml_utils_SOURCES
|
||||
sixtp.cpp
|
||||
)
|
||||
|
||||
SET_LOCAL_DIST(backend_xml_DIST_local ${backend_xml_utils_SOURCES}
|
||||
${backend_xml_utils_noinst_HEADERS} gnc-backend-xml.cpp CMakeLists.txt
|
||||
Makefile.am)
|
||||
SET(backend_xml_DIST ${backend_xml_DIST_local} ${test_backend_xml_DIST} PARENT_SCOPE)
|
||||
|
||||
# Add dependency on config.h
|
||||
SET_SOURCE_FILES_PROPERTIES (${backend_xml_utils_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
|
||||
|
@ -1,4 +1,5 @@
|
||||
# Common stuff
|
||||
ADD_SUBDIRECTORY(test-files)
|
||||
|
||||
SET(XML_TEST_INCLUDE_DIRS
|
||||
${CMAKE_SOURCE_DIR}/src/backend/xml
|
||||
@ -56,7 +57,19 @@ SET(test_backend_xml_module_SOURCES
|
||||
${CMAKE_SOURCE_DIR}/src/backend/xml/gnc-pricedb-xml-v2.cpp
|
||||
)
|
||||
|
||||
# The test test-dom-parser1.cpp is not run by Makefile.am
|
||||
SET_LOCAL_DIST(test_backend_xml_DIST_local CMakeLists.txt grab-types.pl
|
||||
Makefile.am README test-date-converting.cpp test-dom-converters1.cpp
|
||||
test-dom-parser1.cpp test-file-stuff.cpp test-file-stuff.h test-kvp-frames.cpp
|
||||
test-load-backend.cpp test-load-example-account.cpp test-load-xml2.cpp
|
||||
test-save-in-lang.cpp test-string-converters.cpp test-xml2-is-file.cpp
|
||||
test-xml-account.cpp test-real-data.sh.in test-xml-commodity.cpp
|
||||
test-xml-pricedb.cpp test-xml-transaction.cpp)
|
||||
SET(test_backend_xml_DIST ${test_backend_xml_DIST_local} ${test_backend_xml_test_files_DIST} PARENT_SCOPE)
|
||||
|
||||
# The test test-dom-parser1.c is not run by Makefile.am
|
||||
|
||||
# This line for autotools
|
||||
CONFIGURE_FILE(test-real-data.sh.in test-real-data.sh)
|
||||
|
||||
ADD_XML_TEST(test-date-converting "${test_backend_xml_base_SOURCES};test-date-converting.cpp")
|
||||
ADD_XML_TEST(test-dom-converters1 "${test_backend_xml_base_SOURCES};test-dom-converters1.cpp")
|
||||
|
6
src/backend/xml/test/test-files/CMakeLists.txt
Normal file
6
src/backend/xml/test/test-files/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
ADD_SUBDIRECTORY(xml2)
|
||||
|
||||
SET_LOCAL_DIST(test_backend_xml_test_files_DIST_local CMakeLists.txt Makefile.am)
|
||||
SET(test_backend_xml_test_files_DIST ${test_backend_xml_test_files_DIST_local} ${xml2_DIST} PARENT_SCOPE)
|
||||
|
4
src/backend/xml/test/test-files/xml2/CMakeLists.txt
Normal file
4
src/backend/xml/test/test-files/xml2/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
SET_DIST_LIST(xml2_DIST abcall.gml2 abc.gml2 carols-data-file.gml2 cbb-export.gml2 CMakeLists.txt conrads-file.gml2
|
||||
every.gml2 goonies-file.gml2 hierachical-data-file.gml2 Makefile.am Money95bank_fr.gml2
|
||||
Money95invst.gml2 Money95mutual.gml2 Money95stocks.gml2 ms-money.gml2 pricedb1.gml2)
|
@ -39,10 +39,7 @@ INSTALL(TARGETS gnucash DESTINATION bin)
|
||||
|
||||
# Generate the gnucash-env script
|
||||
SET(SCRIPT_LIST "")
|
||||
SET(SCRIPT_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
SET(SCRIPT_OUTPUT_DIR ${BINDIR_BUILD})
|
||||
ENDIF()
|
||||
SET(SCRIPT_OUTPUT_DIR ${BINDIR_BUILD})
|
||||
|
||||
FOREACH (script gnucash-env gnucash-make-guids)
|
||||
SET (GNUCASH_ENV_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${script})
|
||||
@ -63,11 +60,9 @@ ENDFOREACH(script)
|
||||
SET(TOP_SRC_DIR ${CMAKE_SOURCE_DIR})
|
||||
SET(GNUCASH_BIN_INSTALL_NAME "gnucash")
|
||||
|
||||
SET(VALGRIND_OUTDIR ${CMAKE_CURRENT_BINARY_DIR})
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
SET(VALGRIND_OUTDIR ${BINDIR_BUILD})
|
||||
ENDIF()
|
||||
SET(VALGRIND_OUTDIR ${BINDIR_BUILD})
|
||||
|
||||
CONFIGURE_FILE(gnucash.rc.in gnucash.rc @ONLY NEWLINE_STYLE WIN32)
|
||||
GNC_CONFIGURE(gnucash-valgrind.in ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/gnucash-valgrind)
|
||||
|
||||
FILE(COPY ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/gnucash-valgrind
|
||||
@ -93,9 +88,7 @@ STRING(CONCAT ENV_STRINGS ${ENV_STRINGS_LIST})
|
||||
STRING(CONFIGURE "${ENV_STRINGS}" ENV_STRINGS_CONF @ONLY)
|
||||
|
||||
SET(ENV_FILE_OUT ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/environment)
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
SET(BUILD_ENV_FILE_OUT ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/environment.build)
|
||||
ENDIF()
|
||||
SET(BUILD_ENV_FILE_OUT ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/environment.build)
|
||||
|
||||
FILE(WRITE ${ENV_FILE_OUT} "${ENV_STRINGS_CONF}")
|
||||
FILE(WRITE ${BUILD_ENV_FILE_OUT} "${ENV_STRINGS_CONF}")
|
||||
@ -115,21 +108,19 @@ IF (NOT(${DATADIR} STREQUAL "/usr/share") AND NOT(${DATADIR} STREQUAL "/usr/loca
|
||||
FILE(APPEND ${ENV_FILE_OUT} "XDG_DATA_DIRS=${DATADIR};{XDG_DATA_DIRS}" "${GNC_SYSTEM_XDG_DATA_DIRS}\n")
|
||||
ENDIF()
|
||||
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
FILE(APPEND ${BUILD_ENV_FILE_OUT} "GNC_DBD_DIR=${LIBDBI_DRIVERS_DIR}/dbd")
|
||||
FILE(APPEND ${BUILD_ENV_FILE_OUT} "GNC_DBD_DIR=${LIBDBI_DRIVERS_DIR}/dbd")
|
||||
|
||||
FILE(APPEND ${BUILD_ENV_FILE_OUT} ${XDG_TEXT})
|
||||
FILE(APPEND ${BUILD_ENV_FILE_OUT} "XDG_DATA_DIRS=${DATADIR_BUILD};{XDG_DATA_DIRS};" "${GNC_SYSTEM_XDG_DATA_DIRS}\n")
|
||||
FILE(APPEND ${BUILD_ENV_FILE_OUT} ${XDG_TEXT})
|
||||
FILE(APPEND ${BUILD_ENV_FILE_OUT} "XDG_DATA_DIRS=${DATADIR_BUILD};{XDG_DATA_DIRS};" "${GNC_SYSTEM_XDG_DATA_DIRS}\n")
|
||||
|
||||
FILE(COPY ${BUILD_ENV_FILE_OUT}
|
||||
DESTINATION ${SYSCONFDIR_BUILD}/gnucash
|
||||
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
||||
)
|
||||
FILE(RENAME
|
||||
${SYSCONFDIR_BUILD}/gnucash/environment.build
|
||||
${SYSCONFDIR_BUILD}/gnucash/environment
|
||||
)
|
||||
ENDIF()
|
||||
FILE(COPY ${BUILD_ENV_FILE_OUT}
|
||||
DESTINATION ${SYSCONFDIR_BUILD}/gnucash
|
||||
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
||||
)
|
||||
FILE(RENAME
|
||||
${SYSCONFDIR_BUILD}/gnucash/environment.build
|
||||
${SYSCONFDIR_BUILD}/gnucash/environment
|
||||
)
|
||||
|
||||
SET(ENVIRONMENT_FILE_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
||||
FILE(COPY ${ENV_FILE_OUT}
|
||||
@ -137,11 +128,13 @@ FILE(COPY ${ENV_FILE_OUT}
|
||||
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
||||
)
|
||||
|
||||
|
||||
|
||||
INSTALL(FILES ${SCRIPT_LIST} ${VALGRIND_OUTDIR}/gnucash-valgrind DESTINATION bin)
|
||||
INSTALL(FILES ${ENVIRONMENT_FILE_DIR}/environment DESTINATION etc/gnucash)
|
||||
|
||||
SET_LOCAL_DIST(bin_DIST_local CMakeLists.txt environment.in generate-gnc-script gnucash-bin.c gnucash.rc.in gnucash-valgrind.in
|
||||
Makefile.am)
|
||||
SET(bin_DIST ${bin_DIST_local} ${overrides_DIST} ${test_bin_DIST} PARENT_SCOPE)
|
||||
|
||||
IF (WIN32)
|
||||
# Write out a command script for windows
|
||||
SET(lib_directories boost enchant libsoup mysql pgsql libxslt)
|
||||
@ -174,14 +167,12 @@ IF (WIN32)
|
||||
ENDFOREACH(line)
|
||||
FILE(APPEND ${CMD_FILE} "\nstart gnucash %*\n")
|
||||
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
SET(BUILD_CMD_FILE ${CMAKE_BINARY_DIR}/bin/gnucash-launcher.cmd)
|
||||
FILE(WRITE ${BUILD_CMD_FILE} "@echo off\nsetlocal\n\n")
|
||||
FOREACH(line ${CMD_LINES})
|
||||
FILE(APPEND ${BUILD_CMD_FILE} "${line}")
|
||||
ENDFOREACH(line)
|
||||
FILE(APPEND ${BUILD_CMD_FILE} "\nstart gnucash %*\n")
|
||||
ENDIF()
|
||||
SET(BUILD_CMD_FILE ${CMAKE_BINARY_DIR}/bin/gnucash-launcher.cmd)
|
||||
FILE(WRITE ${BUILD_CMD_FILE} "@echo off\nsetlocal\n\n")
|
||||
FOREACH(line ${CMD_LINES})
|
||||
FILE(APPEND ${BUILD_CMD_FILE} "${line}")
|
||||
ENDFOREACH(line)
|
||||
FILE(APPEND ${BUILD_CMD_FILE} "\nstart gnucash %*\n")
|
||||
|
||||
INSTALL(PROGRAMS ${CMD_FILE} DESTINATION bin)
|
||||
ENDIF(WIN32)
|
||||
|
@ -7,15 +7,15 @@ SET(GUILE ${GUILE_EXECUTABLE})
|
||||
SET(GNC_SRCDIR ${CMAKE_SOURCE_DIR})
|
||||
SET(GNC_BUILDDIR ${CMAKE_BINARY_DIR})
|
||||
|
||||
CONFIGURE_FILE(gnucash-make-guids.in gnucash-make-guids)
|
||||
CONFIGURE_FILE(gnucash-make-guids.in ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/gnucash-make-guids)
|
||||
GNC_CONFIGURE(gnucash-env.in ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/gnucash-env)
|
||||
GNC_CONFIGURE(guile.in ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/guile) #not installed
|
||||
GNC_CONFIGURE(gnucash-build-env.in ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/gnucash-build-env) # not installed
|
||||
|
||||
SET(SCRIPT_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
SET(SCRIPT_OUTPUT_DIR ${LIBDIR_BUILD}exec/gnucash/overrides)
|
||||
ENDIF()
|
||||
SET_DIST_LIST(overrides_DIST CMakeLists.txt gnucash-build-env.in gnucash-env.in gnucash-make-guids.in guile.in Makefile.am)
|
||||
|
||||
SET(SCRIPT_OUTPUT_DIR ${LIBDIR_BUILD}exec/gnucash/overrides)
|
||||
|
||||
FOREACH(file gnucash-make-guids gnucash-env guile gnucash-build-env)
|
||||
FILE(COPY ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${file}
|
||||
|
@ -1,3 +1,6 @@
|
||||
CONFIGURE_FILE(test-version.in test-version)
|
||||
|
||||
ADD_TEST(NAME test-version
|
||||
COMMAND ${CMAKE_BINARY_DIR}/bin/gnucash --version)
|
||||
COMMAND ${CMAKE_BINARY_DIR}/bin/gnucash --version)
|
||||
|
||||
SET_DIST_LIST(test_bin_DIST CMakeLists.txt Makefile.am test-version.in)
|
5
src/business/CMakeLists.txt
Normal file
5
src/business/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
ADD_SUBDIRECTORY(business-gnome)
|
||||
ADD_SUBDIRECTORY(business-ledger)
|
||||
|
||||
SET_LOCAL_DIST(business_DIST_local CMakeLists.txt Makefile.am)
|
||||
SET(business_DIST ${business_DIST_local} ${business_gnome_DIST} ${business_ledger_DIST} PARENT_SCOPE)
|
@ -79,4 +79,9 @@ GNC_ADD_SCHEME_TARGETS(scm-business-gnome
|
||||
"${GUILE_LIBRARY_DIRS}"
|
||||
"${GUILE_DEPENDS}"
|
||||
FALSE
|
||||
)
|
||||
)
|
||||
SET_LOCAL_DIST(business_gnome_DIST_local CMakeLists.txt Makefile.am ${business_gnome_SOURCES} ${business_gnome_HEADERS}
|
||||
${business_gnome_noinst_HEADERS} ${gncmod_business_gnome_SCHEME})
|
||||
|
||||
SET(business_gnome_DIST ${business_gnome_DIST_local} ${business_gnome_gschema_DIST}
|
||||
${business_gnome_gtkbuilder_DIST} ${business_gnome_ui_DIST} PARENT_SCOPE)
|
@ -1,4 +1,6 @@
|
||||
|
||||
SET(business_gnome_GSCHEMA org.gnucash.dialogs.business.gschema.xml)
|
||||
|
||||
ADD_GSCHEMA_TARGETS(business-gnome-gschema "${business_gnome_GSCHEMA}")
|
||||
ADD_GSCHEMA_TARGETS(business-gnome-gschema "${business_gnome_GSCHEMA}")
|
||||
|
||||
SET_DIST_LIST(business_gnome_gschema_DIST CMakeLists.txt Makefile.am org.gnucash.dialogs.business.gschema.xml.in.in)
|
@ -1,12 +1,16 @@
|
||||
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
FILE(COPY .
|
||||
DESTINATION ${DATADIR_BUILD}/gnucash/gtkbuilder
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
ENDIF()
|
||||
FILE(COPY .
|
||||
DESTINATION ${DATADIR_BUILD}/gnucash/gtkbuilder
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
|
||||
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DESTINATION share/gnucash
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
DESTINATION share/gnucash
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
|
||||
SET(business_gnome_GLADE business-options-gnome.glade business-prefs.glade dialog-billterms.glade dialog-choose-owner.glade
|
||||
dialog-customer.glade dialog-date-close.glade dialog-employee.glade dialog-invoice.glade dialog-job.glade
|
||||
dialog-order.glade dialog-payment.glade dialog-vendor.glade)
|
||||
|
||||
SET_DIST_LIST(business_gnome_gtkbuilder_DIST CMakeLists.txt Makefile.am ${business_gnome_GLADE})
|
@ -1,12 +1,12 @@
|
||||
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
FILE(COPY .
|
||||
DESTINATION ${DATADIR_BUILD}/gnucash/ui
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
ENDIF()
|
||||
FILE(COPY .
|
||||
DESTINATION ${DATADIR_BUILD}/gnucash/ui
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
|
||||
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DESTINATION share/gnucash
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
DESTINATION share/gnucash
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
|
||||
SET(business_gnome_UI gnc-plugin-business-ui.xml gnc-plugin-page-invoice-ui.xml gnc-plugin-page-owner-tree-ui.xml)
|
||||
SET_DIST_LIST(business_gnome_ui_DIST CMakeLists.txt Makefile.am ${business_gnome_UI})
|
@ -32,4 +32,6 @@ INSTALL(TARGETS gnc-business-ledger
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
RUNTIME DESTINATION bin)
|
||||
# No headers to install
|
||||
# No headers to install
|
||||
|
||||
SET_DIST_LIST(business_ledger_DIST CMakeLists.txt Makefile.am ${gnc_business_ledger_SOURCES} ${gnc_business_ledger_noinst_HEADERS})
|
||||
|
6
src/cmake_modules/CMakeLists.txt
Normal file
6
src/cmake_modules/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
SET(cmake_FILES GncAddGSchemaTargets.cmake GncAddSchemeTargets.cmake GncAddSwigCommand.cmake GncAddTest.cmake
|
||||
GncConfigure.cmake GncFindPkgConfig.cmake MacroAddSourceFileCompileFlags.cmake MacroAppendForeach.cmake
|
||||
MakeDist.cmake MakeDistFiles.cmake MakeDistCheck.cmake)
|
||||
|
||||
SET_DIST_LIST(cmake_modules_DIST CMakeLists.txt COPYING-CMAKE-SCRIPTS.txt ${cmake_FILES})
|
@ -12,16 +12,14 @@ MACRO(ADD_GSCHEMA_TARGETS _TARGET _gschema_INPUTS)
|
||||
SET(CMAKE_COMMAND_TMP ${CMAKE_COMMAND} -E env)
|
||||
ENDIF()
|
||||
FOREACH(file ${_gschema_INPUTS})
|
||||
GNC_CONFIGURE2(${file}.in.in ${file}.in)
|
||||
GNC_CONFIGURE2(${file}-target ${file}.in.in ${file}.in)
|
||||
STRING(REPLACE ".xml" ".valid" file_no_xml ${file})
|
||||
SET(_OUTPUT_FILE ${CMAKE_CURRENT_BINARY_DIR}/${file})
|
||||
SET(_BUILD_FILE ${DATADIR_BUILD}/glib-2.0/schemas/${file})
|
||||
SET(_VALID_FILE ${CMAKE_CURRENT_BINARY_DIR}/${file_no_xml})
|
||||
LIST(APPEND _gschema_OUTPUTS ${_OUTPUT_FILE})
|
||||
LIST(APPEND _gschema_VALIDS ${_VALID_FILE})
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
LIST(APPEND _gschema_BUILDS ${_BUILD_FILE})
|
||||
ENDIF()
|
||||
LIST(APPEND _gschema_BUILDS ${_BUILD_FILE})
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${_OUTPUT_FILE}
|
||||
COMMAND ${CMAKE_COMMAND_TMP}
|
||||
@ -30,13 +28,11 @@ MACRO(ADD_GSCHEMA_TARGETS _TARGET _gschema_INPUTS)
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${file}.in
|
||||
MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/${file}.in.in
|
||||
)
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${_BUILD_FILE}
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${_OUTPUT_FILE} ${_BUILD_FILE}
|
||||
DEPENDS ${_OUTPUT_FILE}
|
||||
)
|
||||
ENDIF()
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${_BUILD_FILE}
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${_OUTPUT_FILE} ${_BUILD_FILE}
|
||||
DEPENDS ${_OUTPUT_FILE}
|
||||
)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${_VALID_FILE}
|
||||
COMMAND ${CMAKE_COMMAND_TMP}
|
||||
|
@ -16,9 +16,7 @@ MACRO(GNC_ADD_SCHEME_TARGETS _TARGET _SOURCE_FILES _OUTPUT_DIR_IN _GUILE_MODULES
|
||||
ENDIF(WIN32)
|
||||
SET(MAKE_LINKS ${MAKE_LINKS_IN})
|
||||
SET(_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/${_OUTPUT_DIR_IN})
|
||||
IF(GNC_BUILD_AS_INSTALL)
|
||||
SET(_OUTPUT_DIR ${DATADIR_BUILD}/gnucash/scm/${_OUTPUT_DIR_IN})
|
||||
ENDIF()
|
||||
SET(_OUTPUT_DIR ${DATADIR_BUILD}/gnucash/scm/${_OUTPUT_DIR_IN})
|
||||
FILE(MAKE_DIRECTORY ${_OUTPUT_DIR})
|
||||
# For guile 1, we simple link (or copy, for Windows) each source file to the dest directory
|
||||
IF(HAVE_GUILE1 OR MAKE_LINKS)
|
||||
@ -74,14 +72,12 @@ MACRO(GNC_ADD_SCHEME_TARGETS _TARGET _SOURCE_FILES _OUTPUT_DIR_IN _GUILE_MODULES
|
||||
STRING(REPLACE ";" ":" _GUILE_LD_LIBRARY_PATH "${_GUILE_LD_LIBRARY_PATH}")
|
||||
STRING(REPLACE ";" ":" _GNC_MODULE_PATH "${_GNC_MODULE_PATH}")
|
||||
|
||||
IF(GNC_BUILD_AS_INSTALL)
|
||||
SET(_GUILE_CACHE_DIR ${LIBDIR_BUILD}/gnucash/scm/ccache/2.0)
|
||||
SET(_GUILE_LOAD_PATH "${CMAKE_CURRENT_SOURCE_DIR}:${DATADIR_BUILD}/gnucash/scm")
|
||||
SET(_GUILE_LOAD_COMPILED_PATH ${_GUILE_CACHE_DIR})
|
||||
# SET(_GNC_MODULE_PATH "${LIBDIR_BUILD}/${CMAKE_BUILD_TYPE}:${LIBDIR_BUILD}/gnucash/${CMAKE_BUILD_TYPE}")
|
||||
SET(_GNC_MODULE_PATH "")
|
||||
SET(_GUILE_LD_LIBRARY_PATH ${_GNC_MODULE_PATH})
|
||||
ENDIF()
|
||||
SET(_GUILE_CACHE_DIR ${LIBDIR_BUILD}/gnucash/scm/ccache/2.0)
|
||||
SET(_GUILE_LOAD_PATH "${CMAKE_CURRENT_SOURCE_DIR}:${DATADIR_BUILD}/gnucash/scm")
|
||||
SET(_GUILE_LOAD_COMPILED_PATH ${_GUILE_CACHE_DIR})
|
||||
# SET(_GNC_MODULE_PATH "${LIBDIR_BUILD}/${CMAKE_BUILD_TYPE}:${LIBDIR_BUILD}/gnucash/${CMAKE_BUILD_TYPE}")
|
||||
SET(_GNC_MODULE_PATH "")
|
||||
SET(_GUILE_LD_LIBRARY_PATH ${_GNC_MODULE_PATH})
|
||||
IF (__DEBUG)
|
||||
MESSAGE(" ")
|
||||
MESSAGE(" GUILE_LOAD_PATH: ${_GUILE_LOAD_PATH}")
|
||||
@ -100,12 +96,8 @@ MACRO(GNC_ADD_SCHEME_TARGETS _TARGET _SOURCE_FILES _OUTPUT_DIR_IN _GUILE_MODULES
|
||||
IF (_TMP_OUTPUT_DIR_IN)
|
||||
SET(output_file ${_OUTPUT_DIR_IN}/${basename}.go)
|
||||
ENDIF()
|
||||
IF(GNC_BUILD_AS_INSTALL)
|
||||
SET(output_file ${_GUILE_CACHE_DIR}/${output_file})
|
||||
LIST(APPEND _TARGET_FILES ${output_file})
|
||||
ELSE()
|
||||
LIST(APPEND _TARGET_FILES ${CMAKE_CURRENT_BINARY_DIR}/${output_file})
|
||||
ENDIF()
|
||||
SET(output_file ${_GUILE_CACHE_DIR}/${output_file})
|
||||
LIST(APPEND _TARGET_FILES ${output_file})
|
||||
|
||||
SET(source_file_abs_path ${CMAKE_CURRENT_SOURCE_DIR}/${source_file})
|
||||
IF (IS_ABSOLUTE ${source_file})
|
||||
|
@ -4,14 +4,16 @@
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
MACRO (GNC_ADD_SWIG_COMMAND _target _input)
|
||||
MACRO (GNC_ADD_SWIG_COMMAND _target _output _input)
|
||||
|
||||
ADD_CUSTOM_COMMAND (
|
||||
OUTPUT ${_target}
|
||||
OUTPUT ${_output}
|
||||
DEPENDS ${_input} ${CMAKE_SOURCE_DIR}/src/base-typemaps.i ${ARGN}
|
||||
COMMAND ${SWIG_EXECUTABLE} -guile ${SWIG_ARGS} -Linkage module -I${CMAKE_SOURCE_DIR}/src/libqof/qof -I${CMAKE_SOURCE_DIR}/src -o ${_target} ${_input}
|
||||
COMMAND ${SWIG_EXECUTABLE} -guile ${SWIG_ARGS} -Linkage module -I${CMAKE_SOURCE_DIR}/src/libqof/qof -I${CMAKE_SOURCE_DIR}/src -o ${_output} ${_input}
|
||||
)
|
||||
|
||||
ADD_CUSTOM_TARGET(${_target} DEPENDS ${_output})
|
||||
|
||||
ENDMACRO (GNC_ADD_SWIG_COMMAND)
|
||||
|
||||
|
||||
|
@ -33,6 +33,7 @@ FUNCTION(GET_GUILE_ENV)
|
||||
STRING(REPLACE ";" ":" GUILE_LOAD_PATH "${guile_load_path}")
|
||||
ENDIF()
|
||||
LIST(APPEND env "GUILE_LOAD_PATH=${GUILE_LOAD_PATH}")
|
||||
LIST(APPEND env "GUILE=${GUILE_EXECUTABLE}")
|
||||
SET(GUILE_ENV ${env} PARENT_SCOPE)
|
||||
ENDFUNCTION()
|
||||
|
||||
|
@ -12,7 +12,7 @@ MACRO (GNC_CONFIGURE _INPUT _OUTPUT)
|
||||
ENDMACRO()
|
||||
|
||||
|
||||
MACRO (GNC_CONFIGURE2 _INPUT _OUTPUT)
|
||||
MACRO (GNC_CONFIGURE2 _TARGET _INPUT _OUTPUT)
|
||||
|
||||
SET(_TMPDIR ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY})
|
||||
FILE(READ ${_INPUT} FILE_CONTENTS_IN_IN)
|
||||
@ -38,5 +38,7 @@ MACRO (GNC_CONFIGURE2 _INPUT _OUTPUT)
|
||||
-D DST=${_OUTPUT_FILE}
|
||||
-P ${_TMPDIR}/${_INPUT}.cmake
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_INPUT}
|
||||
)
|
||||
)
|
||||
|
||||
ADD_CUSTOM_TARGET(${_TARGET} DEPENDS ${_OUTPUT_FILE})
|
||||
ENDMACRO()
|
||||
|
207
src/cmake_modules/MakeDist.cmake
Normal file
207
src/cmake_modules/MakeDist.cmake
Normal file
@ -0,0 +1,207 @@
|
||||
# This file implements the process of making source distributio tarballs. It expects to find list in
|
||||
# 'dist_manifest.txt' of all of the files to be included in the distribution, EXCEPT those
|
||||
# files that are generated. The list of generated files is specified in MakeDistFiles.cmake in the
|
||||
# COPY_FROM_BUILD and COPY_FROM_BUILD_2 variables.
|
||||
#
|
||||
# Given all of these files, the procedure is to:
|
||||
# 1. Remove any existing dist directory and make a new one.
|
||||
# 2. Copy of all the files in dist_manifest.text, COPY_FROM_BUILD and COPY_FROM_BUILD_2
|
||||
# into the dist directory.
|
||||
# 3. Run autogen.sh if build a dist from Git.
|
||||
# 4. Create the tarball and compress it with gzip and bzip2.
|
||||
# 5. Then remove the dist directory.
|
||||
|
||||
include(${CMAKE_MODULE_PATH}/MakeDistFiles.cmake)
|
||||
|
||||
FUNCTION(FIND_AUTOMAKE AUTOMAKE_VAR ACLOCAL_VAR AUTOMAKE_VERSION_VAR NEED_OVERRIDE_VAR)
|
||||
FIND_PROGRAM(AUTOMAKE automake)
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${AUTOMAKE} --version
|
||||
RESULT_VARIABLE AUTOMAKE_RESULT
|
||||
OUTPUT_VARIABLE AUTOMAKE_OUTPUT
|
||||
ERROR_VARIABLE AUTOMAKE_ERROR
|
||||
)
|
||||
|
||||
# GnuCash will not pass distcheck under automake 1.15+
|
||||
# See if automake-1.11 is available. If so use, that
|
||||
SET(AUTOMAKE_OK TRUE)
|
||||
SET(NEED_OVERRIDE FALSE)
|
||||
IF(${AUTOMAKE} STREQUAL AUTOMAKE-NOTFOUND)
|
||||
SET(AUTOMAKE_OK FALSE)
|
||||
ELSE()
|
||||
STRING(REGEX REPLACE ".*automake \\(GNU automake\\) ([0-9]\\.[0-9]+).*" "\\1" AUTOMAKE_VERSION "${AUTOMAKE_OUTPUT}")
|
||||
|
||||
IF (${AUTOMAKE_VERSION} VERSION_GREATER "1.14")
|
||||
SET(AUTOMAKE_OK FALSE)
|
||||
ELSE()
|
||||
FIND_PROGRAM(ACLOCAL aclocal)
|
||||
IF(${ACLOCAL} STREQUAL ACLOCAL-NOTFOUND)
|
||||
MESSAGE(FATAL_ERROR "Found ok version of automake, but can't find aclocal")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
IF (NOT AUTOMAKE_OK)
|
||||
FIND_PROGRAM(AUTOMAKE11 automake-1.11)
|
||||
IF (${AUTOMAKE11} STREQUAL AUTOMAKE11-NOTFOUND)
|
||||
IF (${AUTOMAKE} STREQUAL AUTOMAKE-NOTFOUND)
|
||||
MESSAGE(FATAL_ERROR "Can't find 'automake' or 'automake-1.11'")
|
||||
ELSE()
|
||||
MESSAGE("Automake is incompatible version 1.15+, but can't find automake-1.11")
|
||||
MESSAGE(" You can set AUTOTOOLS_IN_DIST=OFF to exclude autotools support.")
|
||||
MESSAGE(FATAL_ERROR "automake not compatible")
|
||||
ENDIF()
|
||||
ELSE()
|
||||
SET(AUTOMAKE ${AUTOMAKE11})
|
||||
SET(AUTOMAKE_VERSION 1.11)
|
||||
SET(NEED_OVERRIDE TRUE)
|
||||
FIND_PROGRAM(ACLOCAL aclocal-1.11)
|
||||
IF(${ACLOCAL} STREQUAL ACLOCAL-NOTFOUND)
|
||||
MESSAGE(FATAL_ERROR "Found automake-1.11, but not aclocal-1.11")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
SET(${AUTOMAKE_VAR} ${AUTOMAKE} PARENT_SCOPE)
|
||||
SET(${ACLOCAL_VAR} ${ACLOCAL} PARENT_SCOPE)
|
||||
SET(${AUTOMAKE_VERSION_VAR} ${AUTOMAKE_VERSION} PARENT_SCOPE)
|
||||
SET(${NEED_OVERRIDE_VAR} ${NEED_OVERRIDE} PARENT_SCOPE)
|
||||
ENDFUNCTION()
|
||||
|
||||
|
||||
FUNCTION(MAKE_DIST PACKAGE_PREFIX GNUCASH_SOURCE_DIR BUILD_SOURCE_DIR BUILDING_FROM_VCS)
|
||||
|
||||
SET(CMAKE_COMMAND_TMP "")
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
SET(CMAKE_COMMAND_TMP ${CMAKE_COMMAND} -E env)
|
||||
ENDIF()
|
||||
|
||||
# -- Remove any existing packaging directory.
|
||||
FILE(REMOVE_RECURSE ${PACKAGE_PREFIX})
|
||||
|
||||
IF (EXISTS ${PACKAGE_PREFIX})
|
||||
MESSAGE(FATAL_ERROR "Unable to remove existing dist directory \"${PACKAGE_PREFIX}\". Cannot continue.")
|
||||
ENDIF()
|
||||
|
||||
|
||||
# -- Copy in distributed files
|
||||
IF(NOT EXISTS dist_manifest.txt)
|
||||
message(FATAL_ERROR "Cannot find dist manifest: dist_manifest.txt")
|
||||
ENDIF()
|
||||
|
||||
file(STRINGS dist_manifest.txt ALL_DIST)
|
||||
|
||||
FOREACH(file ${ALL_DIST})
|
||||
IF(NOT EXISTS ${GNUCASH_SOURCE_DIR}/${file})
|
||||
MESSAGE(FATAL_ERROR "Can't find dist file ${GNUCASH_SOURCE_DIR}/${file}")
|
||||
ENDIF()
|
||||
GET_FILENAME_COMPONENT(dir ${file} DIRECTORY)
|
||||
FILE(MAKE_DIRECTORY ${PACKAGE_PREFIX}/${dir})
|
||||
FILE(COPY ${GNUCASH_SOURCE_DIR}/${file} DESTINATION ${PACKAGE_PREFIX}/${dir})
|
||||
ENDFOREACH()
|
||||
|
||||
# -- Copy in build products that are distributed.
|
||||
|
||||
FOREACH(file ${COPY_FROM_BUILD} ${COPY_FROM_BUILD_2})
|
||||
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E copy ${BUILD_SOURCE_DIR}/${file} ${PACKAGE_PREFIX}/${file})
|
||||
IF (NOT EXISTS ${PACKAGE_PREFIX}/${file})
|
||||
MESSAGE(FATAL_ERROR "Copy of ${BUILD_SOURCE_DIR}/${file} to dist dir '${PACKAGE_PREFIX}' failed.")
|
||||
ENDIF()
|
||||
ENDFOREACH()
|
||||
|
||||
|
||||
CMAKE_POLICY(SET CMP0012 NEW)
|
||||
|
||||
IF (${BUILDING_FROM_VCS} AND AUTOTOOLS_IN_DIST)
|
||||
FIND_AUTOMAKE(AUTOMAKE ACLOCAL AUTOMAKE_VERSION NEED_OVERRIDE)
|
||||
# -- Run autogen.sh to cause Makefile.in files to be created.
|
||||
SET(CMAKE_COMMAND_AUTOTOOLS ${SHELL} -c)
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
SET(CMAKE_COMMAND_AUTOTOOLS ${CMAKE_COMMAND} -E env)
|
||||
ENDIF()
|
||||
IF (${NEED_OVERRIDE})
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND_AUTOTOOLS} AUTOMAKE=${AUTOMAKE} ACLOCAL=${ACLOCAL} ./autogen.sh
|
||||
WORKING_DIRECTORY ${PACKAGE_PREFIX}
|
||||
RESULT_VARIABLE AUTOGEN_RESULT
|
||||
OUTPUT_VARIABLE AUTOGEN_OUTPUT
|
||||
)
|
||||
ELSE()
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND_AUTOTOOLS} ./autogen.sh
|
||||
WORKING_DIRECTORY ${PACKAGE_PREFIX}
|
||||
RESULT_VARIABLE AUTOGEN_RESULT
|
||||
OUTPUT_VARIABLE AUTOGEN_OUTPUT
|
||||
)
|
||||
ENDIF()
|
||||
IF(NOT ${AUTOGEN_RESULT} STREQUAL "0")
|
||||
MESSAGE(FATAL_ERROR "autogen.sh step failed: ${AUTOGEN_RESULT}")
|
||||
ENDIF()
|
||||
# -- Remove autogen files as they are not distributed.
|
||||
|
||||
FILE(REMOVE ${PACKAGE_PREFIX}/autogen.sh)
|
||||
FILE(REMOVE_RECURSE ${PACKAGE_PREFIX}/autom4te.cache)
|
||||
|
||||
# -- Autogen.sh creates some files a symbolic links that we turn into real files here.
|
||||
|
||||
IF (UNIX) # No symbolic links on Windows
|
||||
SET(LINKS missing config.guess COPYING depcomp INSTALL install-sh config.sub compile)
|
||||
IF(${AUTOMAKE_VERSION} VERSION_GREATER 1.11)
|
||||
LIST(APPEND LINKS test-driver)
|
||||
ENDIF()
|
||||
FOREACH(link ${LINKS})
|
||||
GET_FILENAME_COMPONENT(realpath ${PACKAGE_PREFIX}/${link} REALPATH)
|
||||
FILE(REMOVE ${PACKAGE_PREFIX}/${link})
|
||||
FILE(COPY ${realpath} DESTINATION ${PACKAGE_PREFIX})
|
||||
ENDFOREACH(link)
|
||||
|
||||
FOREACH(link src/doc/design/mdate-sh src/doc/design/texinfo.tex)
|
||||
GET_FILENAME_COMPONENT(dir ${link} DIRECTORY)
|
||||
GET_FILENAME_COMPONENT(realpath ${PACKAGE_PREFIX}/${link} REALPATH)
|
||||
FILE(REMOVE ${PACKAGE_PREFIX}/${link})
|
||||
FILE(COPY ${realpath} DESTINATION ${PACKAGE_PREFIX}/${dir})
|
||||
ENDFOREACH(link)
|
||||
ENDIF(UNIX)
|
||||
|
||||
ENDIF()
|
||||
|
||||
# -- Create the tarball.
|
||||
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${CMAKE_COMMAND} -E tar cf ${PACKAGE_PREFIX}.tar ${PACKAGE_PREFIX}
|
||||
WORKING_DIRECTORY .
|
||||
ERROR_MSG "tar command to create ${PACKAGE_PREFIX}.tar failed."
|
||||
)
|
||||
|
||||
# -- Compress the tarball with gzip
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${PACKAGE_PREFIX}.tar ${PACKAGE_PREFIX}.tar.save
|
||||
)
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${CMAKE_COMMAND_TMP} gzip -f ${PACKAGE_PREFIX}.tar
|
||||
WORKING_DIRECTORY .
|
||||
ERROR_MSG "gzip command to create ${PACKAGE_PREFIX}.tar.gz failed."
|
||||
)
|
||||
|
||||
# -- Compress the tarball with bzip2
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND} -E rename ${PACKAGE_PREFIX}.tar.save ${PACKAGE_PREFIX}.tar
|
||||
)
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${CMAKE_COMMAND_TMP} bzip2 -f ${PACKAGE_PREFIX}.tar
|
||||
WORKING_DIRECTORY .
|
||||
ERROR_MSG "bzip2 command to create ${PACKAGE_PREFIX}.tar.bz2 failed."
|
||||
)
|
||||
|
||||
# -- Clean up packaging directory.
|
||||
|
||||
FILE(REMOVE_RECURSE ${PACKAGE_PREFIX})
|
||||
|
||||
IF(EXISTS ${PACKAGE_PREFIX})
|
||||
MESSAGE(WARNING "Could not remove packaging directory '${PACKAGE_PREFIX}'")
|
||||
ENDIF()
|
||||
|
||||
# -- All done.
|
||||
|
||||
MESSAGE("\n\nDistributions ${PACKAGE_PREFIX}.tar.gz and ${PACKAGE_PREFIX}.tar.bz2 created.\n\n")
|
||||
ENDFUNCTION()
|
||||
|
||||
MAKE_DIST(${PACKAGE_PREFIX} ${GNUCASH_SOURCE_DIR} ${BUILD_SOURCE_DIR} ${BUILDING_FROM_VCS})
|
158
src/cmake_modules/MakeDistCheck.cmake
Normal file
158
src/cmake_modules/MakeDistCheck.cmake
Normal file
@ -0,0 +1,158 @@
|
||||
|
||||
include(MakeDistFiles)
|
||||
|
||||
FUNCTION(RUN_DIST_CHECK PACKAGE_PREFIX EXT)
|
||||
|
||||
SET(tarball ${PACKAGE_PREFIX}.tar${EXT})
|
||||
IF (NOT EXISTS ${tarball})
|
||||
MESSAGE(FATAL_ERROR "Can't find dist tarball '${tarball}'")
|
||||
ENDIF()
|
||||
|
||||
# Remove the directory we're about to extract to
|
||||
FILE(REMOVE_RECURSE ${PACKAGE_PREFIX})
|
||||
|
||||
# Untar the distribution we want to check
|
||||
SET(TAR_OPTION "zxf")
|
||||
IF (${EXT} STREQUAL ".bz2")
|
||||
SET(TAR_OPTION "jxf")
|
||||
ENDIF()
|
||||
|
||||
SET(MY_CMAKE_COMMAND "")
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
SET(MY_CMAKE_COMMAND ${CMAKE_COMMAND} -E env)
|
||||
ENDIF()
|
||||
|
||||
FIND_PROGRAM(NINJA_COMMAND NAMES ninja ninja-build)
|
||||
IF (${NINJA_COMMAND} STREQUAL "NINJA_COMMAND-NOTFOUND")
|
||||
MESSAGE(FATAL_ERROR "Can't find the 'ninja' or 'ninja-build' program.")
|
||||
ENDIF ()
|
||||
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${CMAKE_COMMAND} -E tar ${TAR_OPTION} ${tarball}
|
||||
WORKING_DIRECTORY .
|
||||
ERROR_MSG "Command to untar ${tarball} failed."
|
||||
)
|
||||
|
||||
# Officially, I should make the contents of the untarred dist directory read-only,
|
||||
# but that will cause the build to fail (intltool is unhappy).
|
||||
|
||||
# Create a build directory and configure the Cmake build
|
||||
|
||||
SET(BUILD_DIR "_cmake_build")
|
||||
SET(INSTALL_DIR "_cmake_install")
|
||||
FILE(REMOVE_RECURSE ${BUILD_DIR} ${INSTALL_DIR})
|
||||
|
||||
FILE(MAKE_DIRECTORY ${BUILD_DIR} ${INSTALL_DIR})
|
||||
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${CMAKE_COMMAND} -G Ninja
|
||||
-D CMAKE_C_FLAGS=${CMAKE_C_FLAGS}
|
||||
-D CMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
|
||||
-D CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}
|
||||
-D CMAKE_INSTALL_PREFIX=../${INSTALL_DIR}
|
||||
-D AUTOTOOLS_IN_DIST=${AUTOTOOLS_IN_DIST}
|
||||
../${PACKAGE_PREFIX}
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "CMake configure command failed."
|
||||
)
|
||||
|
||||
# Run ninja in the build directory
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} ${NINJA_COMMAND}
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Ninja build failed."
|
||||
)
|
||||
|
||||
# Run ninja install
|
||||
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} ${NINJA_COMMAND} install
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Ninja install failed."
|
||||
)
|
||||
|
||||
# Run ninja check in the build directory
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} ${NINJA_COMMAND} check
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Ninja check failed."
|
||||
)
|
||||
|
||||
# Run ninja dist
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} ${NINJA_COMMAND} dist
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Ninja dist failed."
|
||||
)
|
||||
|
||||
MESSAGE("distcheck complete.")
|
||||
|
||||
ENDFUNCTION()
|
||||
|
||||
FUNCTION(RUN_AUTOTOOLS_DIST_CHECK PACKAGE_PREFIX)
|
||||
# We assume that the RUN_DIST_CHECK() function has been run so that we can
|
||||
# use the untarred distribution created by that step.
|
||||
SET(BUILD_DIR ${PACKAGE_PREFIX})
|
||||
SET(INSTALL_DIR "_cmake_install_autotools")
|
||||
FILE(REMOVE_RECURSE ${INSTALL_DIR})
|
||||
FILE(MAKE_DIRECTORY ${INSTALL_DIR})
|
||||
|
||||
SET(MY_CMAKE_COMMAND "")
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
SET(MY_CMAKE_COMMAND ${CMAKE_COMMAND} -E env)
|
||||
ENDIF()
|
||||
|
||||
IF(CMAKE_PREFIX_PATH)
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND}
|
||||
LDFLAGS=-L${CMAKE_PREFIX_PATH}/lib
|
||||
CFLAGS=${CMAKE_C_FLAGS}
|
||||
CXXFLAGS=${CMAKE_CXX_FLAGS}
|
||||
CPPFLAGS=-I${CMAKE_PREFIX_PATH}/include
|
||||
PATH=${CMAKE_PREFIX_PATH}/bin:$ENV{PATH}
|
||||
./configure --prefix=${CMAKE_CURRENT_SOURCE_DIR}/${INSTALL_DIR} --enable-compile-warnings
|
||||
--with-dbi-dbd-dir=${CMAKE_PREFIX_PATH}/lib/dbd
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Autotools 'configure' step failed."
|
||||
)
|
||||
|
||||
ELSE()
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND}
|
||||
./configure --prefix=${CMAKE_CURRENT_SOURCE_DIR}/${INSTALL_DIR} --enable-compile-warnings
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Autotools 'configure' step failed."
|
||||
)
|
||||
ENDIF()
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} make -j 4
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Autotools 'make' step failed."
|
||||
)
|
||||
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} make check
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Autotools 'make check' step failed."
|
||||
)
|
||||
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} make install
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Autotools 'make install' step failed."
|
||||
)
|
||||
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} make uninstall
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Autotools 'make uninstall' step failed."
|
||||
)
|
||||
|
||||
MESSAGE("Autotools distcheck complete.")
|
||||
|
||||
ENDFUNCTION()
|
||||
|
||||
RUN_DIST_CHECK(${PACKAGE_PREFIX} .gz)
|
||||
IF (AUTOTOOLS_IN_DIST)
|
||||
RUN_AUTOTOOLS_DIST_CHECK(${PACKAGE_PREFIX})
|
||||
ENDIF()
|
124
src/cmake_modules/MakeDistFiles.cmake
Normal file
124
src/cmake_modules/MakeDistFiles.cmake
Normal file
@ -0,0 +1,124 @@
|
||||
|
||||
IF (${CMAKE_VERSION} VERSION_LESS 3.3)
|
||||
INCLUDE(CMakeParseArguments)
|
||||
ENDIF()
|
||||
|
||||
|
||||
FUNCTION(SET_LOCAL_DIST output)
|
||||
SET(dist_files "")
|
||||
FOREACH(file ${ARGN})
|
||||
FILE(RELATIVE_PATH relative ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${file})
|
||||
LIST(APPEND dist_files ${relative})
|
||||
ENDFOREACH()
|
||||
SET (${output} ${dist_files} PARENT_SCOPE)
|
||||
ENDFUNCTION()
|
||||
|
||||
MACRO(SET_DIST_LIST output)
|
||||
SET_LOCAL_DIST(${output}_TMP ${ARGN})
|
||||
SET(${output} ${${output}_TMP} PARENT_SCOPE)
|
||||
ENDMACRO()
|
||||
|
||||
FUNCTION(EXECUTE_PROCESS_AND_CHECK_RESULT)
|
||||
cmake_parse_arguments(VARS "" "WORKING_DIRECTORY;ERROR_MSG" "COMMAND" ${ARGN})
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${VARS_COMMAND}
|
||||
WORKING_DIRECTORY ${VARS_WORKING_DIRECTORY}
|
||||
RESULT_VARIABLE RESULT
|
||||
)
|
||||
IF (NOT "${RESULT}" STREQUAL "0")
|
||||
MESSAGE(FATAL_ERROR ${VARS_ERROR_MSG})
|
||||
ENDIF()
|
||||
ENDFUNCTION()
|
||||
|
||||
|
||||
# This is a list of files generated at build time that
|
||||
# should be copied into the dist tarball. An item in
|
||||
# this list should be a file, not a directory or glob.
|
||||
# File in this list become dependenices of the 'dist'
|
||||
# target.
|
||||
|
||||
|
||||
SET(COPY_FROM_BUILD
|
||||
ChangeLog
|
||||
src/app-utils/migratable-prefs.xml
|
||||
src/app-utils/swig-app-utils-guile.c
|
||||
src/app-utils/swig-app-utils-python.c
|
||||
src/app-utils/test/test-load-module
|
||||
src/backend/xml/test/test-real-data.sh
|
||||
src/bin/gnucash.rc
|
||||
src/bin/overrides/gnucash-make-guids
|
||||
src/bin/test/test-version
|
||||
src/core-utils/gnc-vcs-info.h
|
||||
src/core-utils/swig-core-utils-guile.c
|
||||
src/core-utils/swig-core-utils-python.c
|
||||
src/doc/design/gnucash-design.info
|
||||
src/engine/iso-4217-currencies.c
|
||||
src/engine/swig-engine.c
|
||||
src/engine/test/test-create-account
|
||||
src/engine/test/test-scm-query-import
|
||||
src/gnc-module/swig-gnc-module.c
|
||||
src/gnc-module/test/mod-bar/swig-bar.c
|
||||
src/gnc-module/test/mod-baz/swig-baz.c
|
||||
src/gnc-module/test/mod-foo/swig-foo.c
|
||||
src/gnc-module/test/test-gwrapped-c
|
||||
src/gnc-module/test/test-load-deps
|
||||
src/gnc-module/test/test-load-scm
|
||||
src/gnc-module/test/test-scm-dynload
|
||||
src/gnc-module/test/test-scm-init
|
||||
src/gnc-module/test/test-scm-module
|
||||
src/gnc-module/test/test-scm-multi
|
||||
src/gnome/gnucash.desktop.in
|
||||
src/gnome/swig-gnome.c
|
||||
src/gnome-utils/gnc-warnings.c
|
||||
src/gnome-utils/swig-gnome-utils.c
|
||||
src/gnome-utils/test/test-load-module
|
||||
src/html/swig-gnc-html.c
|
||||
src/optional/python-bindings/gnucash_core.c
|
||||
src/report/report-gnome/swig-report-gnome.c
|
||||
src/report/report-gnome/test/test-load-module
|
||||
src/report/report-system/swig-report-system.c
|
||||
src/report/report-system/test/test-load-module
|
||||
src/report/standard-reports/test/test-load-module
|
||||
src/report/stylesheets/test/test-load-module
|
||||
src/report/utility-reports/test/test-load-module
|
||||
src/scm/build-config.scm
|
||||
src/swig-runtime.h
|
||||
src/test-core/swig-unittest-support-guile.c
|
||||
src/test-core/swig-unittest-support-python.c
|
||||
)
|
||||
|
||||
# This list is similiar to the COPY_FROM_BUILD list
|
||||
# above, except that we don't create an explicit
|
||||
# dependency on this for the 'dist' target. I need
|
||||
# to fix the creation of these files so that we
|
||||
# can add the as dependencies for 'dist'. These
|
||||
# file are not generated using CONFIGURE_FILE(),
|
||||
# so CMake does not realize these are generated files.
|
||||
|
||||
# Items marked with GNC_CONFIGURE can be
|
||||
# properly generated when we drop autotools, because
|
||||
# then the source file can use the @XXX@ convention
|
||||
# instead of @-XXX-@
|
||||
|
||||
SET(COPY_FROM_BUILD_2
|
||||
doc/gnucash.1 # Uses GNC_CONFIGURE
|
||||
packaging/gnucash.spec # Uses GNC_CONFIGURE
|
||||
po/gnucash.pot
|
||||
src/doc/design/stamp-vti
|
||||
src/doc/design/version.texi
|
||||
src/pixmaps/128x128/gnucash-icon.png
|
||||
src/pixmaps/16x16/gnucash-icon.png
|
||||
src/pixmaps/22x22/gnucash-icon.png
|
||||
src/pixmaps/24x24/gnucash-icon.png
|
||||
src/pixmaps/256x256/gnucash-icon.png
|
||||
src/pixmaps/32x32/gnucash-icon.png
|
||||
src/pixmaps/48x48/gnucash-icon.png
|
||||
src/pixmaps/64x64/gnucash-icon.png
|
||||
src/pixmaps/96x96/gnucash-icon.png
|
||||
src/pixmaps/gnucash-icon-16x16.png
|
||||
src/pixmaps/gnucash-icon-32x32.png
|
||||
src/pixmaps/scalable/gnucash-icon.svg
|
||||
src/optional/python-bindings/gnucash_core_c.py
|
||||
src/test-core/unittest_support.py
|
||||
|
||||
)
|
@ -4,7 +4,7 @@ ADD_SUBDIRECTORY(test)
|
||||
|
||||
IF (BUILDING_FROM_VCS)
|
||||
SET (SWIG_CORE_UTILS_GUILE_C ${CMAKE_CURRENT_BINARY_DIR}/swig-core-utils-guile.c)
|
||||
GNC_ADD_SWIG_COMMAND (${SWIG_CORE_UTILS_GUILE_C} ${CMAKE_CURRENT_SOURCE_DIR}/core-utils.i)
|
||||
GNC_ADD_SWIG_COMMAND (swig-core-utils-guile-c ${SWIG_CORE_UTILS_GUILE_C} ${CMAKE_CURRENT_SOURCE_DIR}/core-utils.i)
|
||||
SET (SWIG_CORE_UTILS_PYTHON_C ${CMAKE_CURRENT_BINARY_DIR}/swig-core-utils-python.c)
|
||||
GNC_ADD_SWIG_PYTHON_COMMAND (swig-core-utils-python ${SWIG_CORE_UTILS_PYTHON_C} ${CMAKE_CURRENT_SOURCE_DIR}/core-utils.i)
|
||||
ELSE()
|
||||
@ -31,12 +31,16 @@ SET (core_utils_SOURCES
|
||||
# Add dependency on config.h
|
||||
SET_SOURCE_FILES_PROPERTIES (${core_utils_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
|
||||
|
||||
# Command to generate the swig-runtime.h header
|
||||
ADD_CUSTOM_COMMAND (
|
||||
OUTPUT ${SWIG_RUNTIME_H}
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
COMMAND ${SWIG_EXECUTABLE} -guile -external-runtime ${SWIG_RUNTIME_H}
|
||||
)
|
||||
IF (BUILDING_FROM_VCS)
|
||||
# Command to generate the swig-runtime.h header
|
||||
ADD_CUSTOM_COMMAND (
|
||||
OUTPUT ${SWIG_RUNTIME_H}
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
COMMAND ${SWIG_EXECUTABLE} -guile -external-runtime ${SWIG_RUNTIME_H}
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
ADD_CUSTOM_TARGET(swig-runtime-h DEPENDS ${SWIG_RUNTIME_H})
|
||||
|
||||
# Add dependency on swig-runtime.h
|
||||
SET_SOURCE_FILES_PROPERTIES (gnc-guile-utils.c PROPERTIES OBJECT_DEPENDS ${SWIG_RUNTIME_H})
|
||||
@ -83,11 +87,21 @@ FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/version.cmake
|
||||
CONFIGURE_FILE(\${SRC} \${DST} @ONLY)
|
||||
")
|
||||
|
||||
ADD_CUSTOM_TARGET(gnc-vcs-info ALL
|
||||
${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_BINARY_DIR}/gnc-vcs-info.h.in
|
||||
-D DST=${CMAKE_CURRENT_BINARY_DIR}/gnc-vcs-info.h
|
||||
-P ${CMAKE_CURRENT_BINARY_DIR}/version.cmake
|
||||
)
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER "3.1")
|
||||
ADD_CUSTOM_TARGET(gnc-vcs-info ALL
|
||||
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/gnc-vcs-info.h
|
||||
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_BINARY_DIR}/gnc-vcs-info.h.in
|
||||
-D DST=${CMAKE_CURRENT_BINARY_DIR}/gnc-vcs-info.h
|
||||
-P ${CMAKE_CURRENT_BINARY_DIR}/version.cmake
|
||||
)
|
||||
ELSE()
|
||||
# BYPRODUCTS keyword not supported below 3.2
|
||||
ADD_CUSTOM_TARGET(gnc-vcs-info ALL
|
||||
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_BINARY_DIR}/gnc-vcs-info.h.in
|
||||
-D DST=${CMAKE_CURRENT_BINARY_DIR}/gnc-vcs-info.h
|
||||
-P ${CMAKE_CURRENT_BINARY_DIR}/version.cmake
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
### Compile library
|
||||
|
||||
@ -110,8 +124,15 @@ SET(core_utils_noinst_HEADERS
|
||||
|
||||
SET(core_utils_ALL_SOURCES ${core_utils_SOURCES} ${core_utils_noinst_HEADERS})
|
||||
SET(core_utils_ALL_LIBRARIES gnc-qof ${GUILE_LDFLAGS} ${GLIB2_LDFLAGS} ${GOBJECT_LDFLAGS} ${GTK_MAC_LDFLAGS})
|
||||
SET(core_utils_ALL_INCLUDES ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${GUILE_INCLUDE_DIRS} ${GTK_MAC_INCLUDE_DIRS})
|
||||
SET(core_utils_ALL_INCLUDES
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_SOURCE_DIR}/src/libqof/qof
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${GUILE_INCLUDE_DIRS}
|
||||
${GTK_MAC_INCLUDE_DIRS})
|
||||
|
||||
SET_LOCAL_DIST(core_utils_DIST_local ${core_utils_ALL_SOURCES} CMakeLists.txt Makefile.am core-utils.i core-utils.scm gncla-dir.h.in)
|
||||
SET(core_utils_DIST ${core_utils_DIST_local} ${test_core_utils_DIST} PARENT_SCOPE)
|
||||
|
||||
IF (MAC_INTEGRATION)
|
||||
LIST(APPEND core_utils_ALL_LIBRARIES ${OSX_EXTRA_LIBRARIES})
|
||||
|
@ -15,4 +15,6 @@ ENDMACRO()
|
||||
|
||||
ADD_CORE_UTILS_TEST(test-gnc-glib-utils test-gnc-glib-utils.c)
|
||||
ADD_CORE_UTILS_TEST(test-gnc-uri-utils test-gnc-uri-utils.c)
|
||||
ADD_CORE_UTILS_TEST(test-resolve-file-path test-resolve-file-path.c)
|
||||
ADD_CORE_UTILS_TEST(test-resolve-file-path test-resolve-file-path.c)
|
||||
|
||||
SET_DIST_LIST(test_core_utils_DIST CMakeLists.txt Makefile.am test-gnc-glib-utils.c test-gnc-uri-utils.c test-resolve-file-path.c)
|
@ -49,7 +49,7 @@ test_gnc_glib_utils_CFLAGS = \
|
||||
-I${top_srcdir}/${MODULEPATH} \
|
||||
${GLIB_CFLAGS}
|
||||
|
||||
EXTRA_DIST =
|
||||
EXTRA_DIST +=
|
||||
|
||||
clean-local:
|
||||
rm -f translog.*
|
||||
|
4
src/debug/CMakeLists.txt
Normal file
4
src/debug/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
ADD_SUBDIRECTORY(valgrind)
|
||||
|
||||
SET_LOCAL_DIST(debug_DIST_local CMakeLists.txt Makefile.am)
|
||||
SET(debug_DIST ${debug_DIST_local} ${valgrind_DIST} PARENT_SCOPE)
|
11
src/debug/valgrind/CMakeLists.txt
Normal file
11
src/debug/valgrind/CMakeLists.txt
Normal file
@ -0,0 +1,11 @@
|
||||
SET(valgrind_FILES
|
||||
valgrind-gdk.supp
|
||||
valgrind-glib.supp
|
||||
valgrind-gnucash.supp
|
||||
valgrind-libfontconfig.supp
|
||||
valgrind-libgda.supp
|
||||
valgrind-libguile.supp
|
||||
valgrind-x11.supp
|
||||
)
|
||||
|
||||
SET_DIST_LIST(valgrind_DIST CMakeLists.txt Makefile.am ${valgrind_FILES})
|
38
src/doc/CMakeLists.txt
Normal file
38
src/doc/CMakeLists.txt
Normal file
@ -0,0 +1,38 @@
|
||||
ADD_SUBDIRECTORY(design)
|
||||
ADD_SUBDIRECTORY(xml)
|
||||
|
||||
SET(doc_FILES
|
||||
backup.txt
|
||||
books.txt
|
||||
budget.txt
|
||||
# business.txt
|
||||
callgrind.txt
|
||||
constderv.html
|
||||
# constraints.txt
|
||||
currencies.txt
|
||||
doxygen.cfg.in
|
||||
doxygen_main_page.c
|
||||
# engine.txt
|
||||
finderv.html
|
||||
finutil.html
|
||||
# g2-architecture.txt
|
||||
generic-druid-framework.txt
|
||||
# gnc-numeric-example.txt
|
||||
guid.txt
|
||||
loans.txt
|
||||
lots.txt
|
||||
multicurrency-discussion.txt
|
||||
# prices.txt
|
||||
python-bindings-doxygen.py
|
||||
qif.txt
|
||||
README
|
||||
# sx.rst
|
||||
tax.txt
|
||||
TODO-schedxactions
|
||||
TODO-sixtp
|
||||
user-prefs-howto.txt
|
||||
)
|
||||
|
||||
SET_LOCAL_DIST(doc_DIST_local CMakeLists.txt Makefile.am ${doc_FILES})
|
||||
SET(doc_DIST ${doc_DIST_local} ${doc_design_DIST} ${doc_xml_DIST} PARENT_SCOPE)
|
||||
|
@ -28,11 +28,22 @@ SET(VERSION_TEXI_IN
|
||||
")
|
||||
|
||||
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/version.texi ${VERSION_TEXI_IN})
|
||||
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/stamp-vti ${VERSION_TEXI_IN})
|
||||
|
||||
FILE(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}" TEXI_BINARY_DIR)
|
||||
FILE(TO_NATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/gnucash-design.texi" TEXI_SOURCE_FILE)
|
||||
|
||||
ADD_CUSTOM_TARGET(gnucash-design.texi ALL
|
||||
COMMAND makeinfo -I ${TEXI_BINARY_DIR} ${TEXI_SOURCE_FILE}
|
||||
DEPENDS ${gnucash_design_TEXINFOS}
|
||||
)
|
||||
IF(${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
ADD_CUSTOM_TARGET(gnucash-design-info ALL
|
||||
COMMAND makeinfo -I ${TEXI_BINARY_DIR} ${TEXI_SOURCE_FILE}
|
||||
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/gnucash-design.info
|
||||
DEPENDS ${gnucash_design_TEXINFOS}
|
||||
)
|
||||
ELSE()
|
||||
ADD_CUSTOM_TARGET(gnucash-design-info ALL
|
||||
COMMAND makeinfo -I ${TEXI_BINARY_DIR} ${TEXI_SOURCE_FILE}
|
||||
DEPENDS ${gnucash_design_TEXINFOS}
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
SET_DIST_LIST(doc_design_DIST CMakeLists.txt Makefile.am gnucash-design.texi ${gnucash_design_TEXINFOS})
|
||||
|
15
src/doc/xml/CMakeLists.txt
Normal file
15
src/doc/xml/CMakeLists.txt
Normal file
@ -0,0 +1,15 @@
|
||||
SET(doc_xml_FILES
|
||||
account-v2.dtd
|
||||
commodity-v2.dtd
|
||||
defaults-v1.dtd
|
||||
# gnucash-v2.rnc
|
||||
io-gncxml-version1.dtd
|
||||
io-gncxml-version2.dtd
|
||||
preferences-v1.dtd
|
||||
prices-v1.dtd
|
||||
README
|
||||
transactions-v2.dtd
|
||||
types.dtd
|
||||
)
|
||||
|
||||
SET_DIST_LIST(doc_xml_DIST CMakeLists.txt Makefile.am ${doc_xml_FILES})
|
@ -76,7 +76,7 @@ SET (engine_HEADERS
|
||||
IF (BUILDING_FROM_VCS)
|
||||
# Command to generate the swig-engine.c wrapper file
|
||||
SET (SWIG_ENGINE_C ${CMAKE_CURRENT_BINARY_DIR}/swig-engine.c)
|
||||
GNC_ADD_SWIG_COMMAND (${SWIG_ENGINE_C} ${CMAKE_CURRENT_SOURCE_DIR}/engine.i ${engine_HEADERS})
|
||||
GNC_ADD_SWIG_COMMAND (swig-engine-c ${SWIG_ENGINE_C} ${CMAKE_CURRENT_SOURCE_DIR}/engine.i ${engine_HEADERS})
|
||||
ELSE()
|
||||
SET (SWIG_ENGINE_C swig-engine.c)
|
||||
ENDIF()
|
||||
@ -88,7 +88,8 @@ ADD_CUSTOM_COMMAND (
|
||||
DEPENDS iso-4217-currencies.xml iso-currencies-to-c.xsl
|
||||
COMMAND
|
||||
${LIBXSLT_XSLTPROC_EXECUTABLE} -o ${ISO_4217_C} "${CMAKE_CURRENT_SOURCE_DIR}/iso-currencies-to-c.xsl" "${CMAKE_CURRENT_SOURCE_DIR}/iso-4217-currencies.xml"
|
||||
)
|
||||
)
|
||||
ADD_CUSTOM_TARGET(iso-4217-c DEPENDS ${ISO_4217_C})
|
||||
# Add dependency on iso-4217-currencies.c
|
||||
SET_SOURCE_FILES_PROPERTIES (gnc-commodity.c PROPERTIES OBJECT_DEPENDS "${ISO_4217_C};${CONFIG_H}")
|
||||
|
||||
@ -127,7 +128,6 @@ SET (engine_SOURCES
|
||||
engine-helpers.c
|
||||
glib-helpers.c
|
||||
policy.c
|
||||
${SWIG_ENGINE_C}
|
||||
gncAddress.c
|
||||
gncBillTerm.c
|
||||
gncBusGuile.c
|
||||
@ -148,6 +148,7 @@ SET (engine_SOURCES
|
||||
ADD_LIBRARY (gncmod-engine
|
||||
${engine_SOURCES}
|
||||
${engine_HEADERS}
|
||||
${SWIG_ENGINE_C}
|
||||
${engine_noinst_HEADERS}
|
||||
)
|
||||
|
||||
@ -215,3 +216,20 @@ GNC_ADD_SCHEME_TARGETS(scm-engine-1
|
||||
)
|
||||
|
||||
ADD_CUSTOM_TARGET(scm-engine ALL DEPENDS scm-engine-1 scm-engine-0)
|
||||
|
||||
SET(engine_EXTRA_DIST
|
||||
business-core.i
|
||||
design.txt
|
||||
engine.i
|
||||
engine-common.i
|
||||
extensions.txt
|
||||
iso-4217-currencies.xml
|
||||
iso-currencies-to-c.xsl
|
||||
kvp_doc.txt
|
||||
README
|
||||
README.query-api
|
||||
SX-book-p.h
|
||||
)
|
||||
SET_LOCAL_DIST(engine_DIST_local CMakeLists.txt Makefile.am ${engine_SOURCES} ${engine_HEADERS}
|
||||
${engine_noinst_HEADERS} ${engine_SCHEME_0} ${engine_SCHEME_1} ${engine_EXTRA_DIST})
|
||||
SET(engine_DIST ${engine_DIST_local} ${engine_test_core_DIST} ${test_engine_DIST} PARENT_SCOPE)
|
@ -7,6 +7,7 @@ SET(libgncmod_test_engine_SOURCES
|
||||
ADD_LIBRARY(gncmod-test-engine STATIC ${libgncmod_test_engine_SOURCES})
|
||||
|
||||
TARGET_INCLUDE_DIRECTORIES(gncmod-test-engine PRIVATE
|
||||
${CMAKE_PREFIX_PATH}/include
|
||||
${GMODULE_INCLUDE_DIRS}
|
||||
${CMAKE_SOURCE_DIR}/src/gnc-module
|
||||
${CMAKE_SOURCE_DIR}/src/libqof/qof
|
||||
@ -14,4 +15,7 @@ TARGET_INCLUDE_DIRECTORIES(gncmod-test-engine PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
${CMAKE_SOURCE_DIR}/src/engine
|
||||
${CMAKE_SOURCE_DIR}/src/test-core
|
||||
)
|
||||
)
|
||||
|
||||
SET_DIST_LIST(engine_test_core_DIST CMakeLists.txt Makefile.am ${libgncmod_test_engine_SOURCES}
|
||||
test-engine-stuff.h test-engine-strings.h)
|
||||
|
@ -16,6 +16,8 @@ MACRO(ADD_ENGINE_TEST _TARGET _SOURCE_FILES)
|
||||
GNC_ADD_TEST(${_TARGET} "${_SOURCE_FILES}" ENGINE_TEST_INCLUDE_DIRS ENGINE_TEST_LIBS)
|
||||
ENDMACRO()
|
||||
|
||||
CONFIGURE_FILE(test-scm-query-import.in test-scm-query-import @ONLY)
|
||||
CONFIGURE_FILE(test-create-account.in test-create-account @ONLY)
|
||||
# Not via macro because of unique link requirements
|
||||
|
||||
ADD_EXECUTABLE(test-link EXCLUDE_FROM_ALL test-link.c)
|
||||
@ -94,3 +96,57 @@ GNC_ADD_SCHEME_TARGETS(scm-test-engine
|
||||
"${GUILE_DEPENDS}"
|
||||
FALSE
|
||||
)
|
||||
|
||||
SET(test_engine_SOURCES_DIST
|
||||
dummy.cpp
|
||||
gtest-import-map.cpp
|
||||
test-account-object.cpp
|
||||
test-address.c
|
||||
test-business.c
|
||||
test-commodities.cpp
|
||||
test-customer.c
|
||||
test-date.cpp
|
||||
test-employee.c
|
||||
test-engine-kvp-properties.c
|
||||
test-engine.c
|
||||
test-group-vs-book.cpp
|
||||
test-guid.cpp
|
||||
test-job.c
|
||||
test-link.c
|
||||
test-load-engine.c
|
||||
test-lots.cpp
|
||||
test-object.c
|
||||
test-query.cpp
|
||||
test-querynew.c
|
||||
test-recurrence.c
|
||||
test-scm-query.cpp
|
||||
test-split-vs-account.cpp
|
||||
test-transaction-reversal.cpp
|
||||
test-transaction-voiding.cpp
|
||||
test-vendor.c
|
||||
utest-Account.cpp
|
||||
utest-Budget.c
|
||||
utest-Entry.c
|
||||
utest-Invoice.c
|
||||
utest-Split.cpp
|
||||
utest-Transaction.cpp
|
||||
utest-gnc-pricedb.c
|
||||
)
|
||||
|
||||
SET(test_engine_SCHEME_DIST
|
||||
test-account.scm
|
||||
test-create-account.scm
|
||||
test-extras.scm
|
||||
test-scm-query-import.scm
|
||||
test-split.scm
|
||||
test-test-extras.scm
|
||||
)
|
||||
|
||||
SET(test_engine_EXTRA_DIST
|
||||
README
|
||||
test-create-account.in
|
||||
test-scm-query-import.in
|
||||
)
|
||||
|
||||
SET_DIST_LIST(test_engine_DIST CMakeLists.txt Makefile.am
|
||||
${test_engine_SOURCES_DIST} ${test_engine_SCHEME_DIST} ${test_engine_EXTRA_DIST})
|
||||
|
@ -4,15 +4,12 @@ ADD_SUBDIRECTORY(test)
|
||||
IF (BUILDING_FROM_VCS)
|
||||
# Command to generate the swig-engine.c wrapper file
|
||||
SET (SWIG_GNC_MODULE_C ${CMAKE_CURRENT_BINARY_DIR}/swig-gnc-module.c)
|
||||
GNC_ADD_SWIG_COMMAND (${SWIG_GNC_MODULE_C} ${CMAKE_CURRENT_SOURCE_DIR}/gnc-module.i)
|
||||
GNC_ADD_SWIG_COMMAND (swig-gnc-module-c ${SWIG_GNC_MODULE_C} ${CMAKE_CURRENT_SOURCE_DIR}/gnc-module.i)
|
||||
ELSE()
|
||||
SET (SWIG_GNC_MODULE_C swig-gnc-module.c)
|
||||
ENDIF()
|
||||
|
||||
SET (gnc_module_SOURCES
|
||||
gnc-module.c
|
||||
${SWIG_GNC_MODULE_C}
|
||||
)
|
||||
SET (gnc_module_SOURCES gnc-module.c)
|
||||
|
||||
# Add dependency on config.h
|
||||
SET_SOURCE_FILES_PROPERTIES (${gnc_module_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
|
||||
@ -25,6 +22,7 @@ SET (gnc_module_HEADERS
|
||||
ADD_LIBRARY (gnc-module
|
||||
${gnc_module_SOURCES}
|
||||
${gnc_module_HEADERS}
|
||||
${SWIG_GNC_MODULE_C}
|
||||
)
|
||||
|
||||
TARGET_LINK_LIBRARIES(gnc-module gnc-qof ${GUILE_LDFLAGS} ${GMODULE_LDFLAGS} ${GLIB2_LDFLAGS})
|
||||
@ -62,3 +60,7 @@ GNC_ADD_SCHEME_TARGETS(scm-gnc-module
|
||||
"${GUILE_DEPENDS}"
|
||||
FALSE
|
||||
)
|
||||
|
||||
SET_LOCAL_DIST(gnc_module_DIST_local CMakeLists.txt Makefile.am ${gnc_module_SOURCES} ${gnc_module_HEADERS}
|
||||
gnc-module.i gnc-module.scm README)
|
||||
SET(gnc_module_DIST ${gnc_module_DIST_local} ${test_gnc_module_DIST} PARENT_SCOPE)
|
@ -65,8 +65,13 @@ GNC_ADD_TEST(test-dynload test-dynload.c
|
||||
)
|
||||
|
||||
SET(GUILE ${GUILE_EXECUTABLE})
|
||||
CONFIGURE_FILE(test-gwrapped-c.in test-gwrapped-c)
|
||||
CONFIGURE_FILE(test-scm-module.in test-scm-module)
|
||||
CONFIGURE_FILE(test-gwrapped-c.in test-gwrapped-c @ONLY)
|
||||
CONFIGURE_FILE(test-scm-module.in test-scm-module @ONLY)
|
||||
CONFIGURE_FILE(test-load-deps.in test-load-deps @ONLY)
|
||||
CONFIGURE_FILE(test-load-scm.in test-load-scm @ONLY)
|
||||
CONFIGURE_FILE(test-scm-dynload.in test-scm-dynload @ONLY)
|
||||
CONFIGURE_FILE(test-scm-init.in test-scm-init @ONLY)
|
||||
CONFIGURE_FILE(test-scm-multi.in test-scm-multi @ONLY)
|
||||
|
||||
FUNCTION(RUN_GUILE_SHELL_TEST _TARGET _SOURCE_FILE)
|
||||
GET_GUILE_ENV()
|
||||
@ -85,3 +90,26 @@ RUN_GUILE_SHELL_TEST(test-gwrapped-c ${CMAKE_CURRENT_BINARY_DIR}/test-gwrapped-c
|
||||
|
||||
RUN_GUILE_SHELL_TEST(test-scm-module ${CMAKE_CURRENT_BINARY_DIR}/test-scm-module)
|
||||
|
||||
SET(test_gnc_module_SOURCE_DIST
|
||||
test-agedver.c
|
||||
test-dynload.c
|
||||
test-incompatdep.c
|
||||
test-load-c.c
|
||||
test-modsysver.c
|
||||
)
|
||||
|
||||
SET(test_gnc_module_EXTRA_DIST
|
||||
README
|
||||
test-gwrapped-c.in
|
||||
test-load-deps.in
|
||||
test-load-scm.in
|
||||
test-scm-dynload.in
|
||||
test-scm-init.in
|
||||
test-scm-module.in
|
||||
test-scm-multi.in
|
||||
)
|
||||
|
||||
SET_LOCAL_DIST(test_gnc_module_DIST_local CMakeLists.txt Makefile.am README ${test_gnc_module_SOURCE_DIST} ${test_gnc_module_EXTRA_DIST})
|
||||
|
||||
SET(test_gnc_module_DIST ${test_gnc_module_DIST_local} ${misc_mods_DIST}
|
||||
${mod_bar_DIST} ${mod_baz_DIST} ${mod_foo_DIST} PARENT_SCOPE)
|
@ -11,4 +11,6 @@ ADD_LIBRARY(gncmod_futuremodsys EXCLUDE_FROM_ALL futuremodsys.c)
|
||||
TARGET_LINK_LIBRARIES(gncmod_futuremodsys ${GLIB2_LDFLAGS})
|
||||
|
||||
ADD_LIBRARY(gncmod_incompatdep EXCLUDE_FROM_ALL incompatdep.c)
|
||||
TARGET_LINK_LIBRARIES(gncmod_incompatdep gnc-module ${GLIB2_LDFLAGS})
|
||||
TARGET_LINK_LIBRARIES(gncmod_incompatdep gnc-module ${GLIB2_LDFLAGS})
|
||||
|
||||
SET_DIST_LIST(misc_mods_DIST CMakeLists.txt Makefile.am agedver.c futuremodsys.c incompatdep.c)
|
@ -1,9 +1,9 @@
|
||||
|
||||
IF (BUILDING_FROM_VCS)
|
||||
SET (SWIG_BAR_C ${CMAKE_CURRENT_BINARY_DIR}/swig-bar.c)
|
||||
GNC_ADD_SWIG_COMMAND (${SWIG_BAR_C} ${CMAKE_CURRENT_SOURCE_DIR}/bar.i bar.h)
|
||||
GNC_ADD_SWIG_COMMAND (swig-bar-c ${SWIG_BAR_C} ${CMAKE_CURRENT_SOURCE_DIR}/bar.i bar.h)
|
||||
ELSE()
|
||||
SET (SWIG_BAR_C swig-bar.c)
|
||||
SET (SWIG_BAR_C ${CMAKE_CURRENT_SOURCE_DIR}/swig-bar.c)
|
||||
ENDIF()
|
||||
|
||||
ADD_LIBRARY(bar EXCLUDE_FROM_ALL bar.c bar.h)
|
||||
@ -20,3 +20,5 @@ TARGET_INCLUDE_DIRECTORIES(gncmodbar PRIVATE
|
||||
${GLIB2_INCLUDE_DIRS}
|
||||
${GUILE_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
SET_DIST_LIST(mod_bar_DIST CMakeLists.txt Makefile.am bar.c gnucash/bar.scm bar.h bar.i gnc-mod-bar.c)
|
@ -1,9 +1,9 @@
|
||||
|
||||
IF (BUILDING_FROM_VCS)
|
||||
SET (SWIG_BAZ_C ${CMAKE_CURRENT_BINARY_DIR}/swig-baz.c)
|
||||
GNC_ADD_SWIG_COMMAND (${SWIG_BAZ_C} ${CMAKE_CURRENT_SOURCE_DIR}/baz.i baz.h)
|
||||
GNC_ADD_SWIG_COMMAND (swig-baz-c ${SWIG_BAZ_C} ${CMAKE_CURRENT_SOURCE_DIR}/baz.i baz.h)
|
||||
ELSE()
|
||||
SET (SWIG_BAZ_C swig-baz.c)
|
||||
SET (SWIG_BAZ_C ${CMAKE_CURRENT_SOURCE_DIR}/swig-baz.c)
|
||||
ENDIF()
|
||||
|
||||
ADD_LIBRARY(baz EXCLUDE_FROM_ALL baz.c baz.h)
|
||||
@ -26,3 +26,5 @@ TARGET_INCLUDE_DIRECTORIES(gncmodbaz PRIVATE
|
||||
${GLIB2_INCLUDE_DIRS}
|
||||
${GUILE_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
SET_DIST_LIST(mod_baz_DIST CMakeLists.txt Makefile.am baz.c gnucash/baz.scm baz.h baz.i gnc-mod-baz.c)
|
@ -1,9 +1,9 @@
|
||||
|
||||
IF (BUILDING_FROM_VCS)
|
||||
SET (SWIG_FOO_C ${CMAKE_CURRENT_BINARY_DIR}/swig-foo.c)
|
||||
GNC_ADD_SWIG_COMMAND (${SWIG_FOO_C} ${CMAKE_CURRENT_SOURCE_DIR}/foo.i foo.h)
|
||||
GNC_ADD_SWIG_COMMAND (swig-foo-c ${SWIG_FOO_C} ${CMAKE_CURRENT_SOURCE_DIR}/foo.i foo.h)
|
||||
ELSE()
|
||||
SET (SWIG_FOO_C swig-foo.c)
|
||||
SET (SWIG_FOO_C ${CMAKE_CURRENT_SOURCE_DIR}/swig-foo.c)
|
||||
ENDIF()
|
||||
|
||||
ADD_LIBRARY(foo EXCLUDE_FROM_ALL foo.c foo.h)
|
||||
@ -20,3 +20,5 @@ TARGET_INCLUDE_DIRECTORIES(gncmodfoo PRIVATE
|
||||
${GLIB2_INCLUDE_DIRS}
|
||||
${GUILE_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
SET_DIST_LIST(mod_foo_DIST CMakeLists.txt Makefile.am foo.i gnucash/foo.scm foo.c foo.h gnc-mod-foo.c)
|
@ -36,6 +36,10 @@ SET (gnome_search_noinst_HEADERS
|
||||
# Add dependency on config.h
|
||||
SET_SOURCE_FILES_PROPERTIES (${gnome_search_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
|
||||
|
||||
SET_LOCAL_DIST(gnome_search_DIST_local CMakeLists.txt Makefile.am dialog-search.glade ${gnome_search_SOURCES} ${gnome_search_HEADERS}
|
||||
${gnome_search_noinst_HEADERS})
|
||||
SET(gnome_search_DIST ${gnome_search_DIST_local} PARENT_SCOPE)
|
||||
|
||||
ADD_LIBRARY (gncmod-gnome-search
|
||||
${gnome_search_SOURCES}
|
||||
${gnome_search_HEADERS}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user