Commit Graph

26 Commits

Author SHA1 Message Date
Geert Janssens
8687dfb1da Merge qof directory into engine
They are both about handling core gnucash objects. Qof was once split out
in an attempt to make it a separate library. This hasn't worked out so there's
no good reason any more to keep this artificial separation.

A few considerations:
- The qof tests are merged into the engine test directory but they are kept as
  a separate test entity for now. Several assumptions made in the qof tests
  are no longer valid in the context of the engine. (For example if the
  pricedb test is added in the same test executable as the qofbook test,
  the book creation test fails because it now has 2 collections (pricedb and
  book) instead of only one. There are plenty of others like this so merging
  the tests needs more careful review and is perhaps best done while converting
  to c++/Google test.
- I had to use unique names for the MockBackend classes because apparently the tests were
  using a MockClass from another file in the cmake builds, causing several
  tests to fail.
2017-08-09 15:37:39 +02:00
Geert Janssens
848bb34741 Move core-utils files with depedencies on qof to engine
I have done this in a separate commit from merging qof back
into engine to keep an overview of changes
2017-08-07 18:32:19 +02:00
John Ralls
c8402ad62e 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
2017-07-04 18:36:35 -07:00
Rob Gowin
6b14dc5b59 Implement 'dist', 'distcheck' and 'uninstall' targets for CMake 2017-07-03 16:15:17 -07:00
Rob Gowin
78ef933e44 CMake improvements for SWIG handling and Python bindings.
* Add ability to either create SWIG C files or use generated ones
  depending on BUILDING_FROM_VCS.

* Add complete support for compiling Python bindings using
  WITH_PYTHON=YES.

* Add CMakeLists.txt files to a couple more directories.
2016-08-30 18:12:49 -05:00
John Ralls
6ad8ff3b4e Tweak version.cmake to work on Windows.
Cmake's execute_process doesn't use a shell unless you tell it to.
2016-07-08 16:35:39 +00:00
John Ralls
b64fe864e9 Make CMake use the same scm-revision program as Autotools.
So that the Win32 build script has the right file name to copy to code's download folder.
2016-07-05 09:56:11 -07:00
RobGowin
42e5dd5c8c cmake - Add ability to run tests under CMake 2016-01-24 19:54:33 -06:00
Rob Gowin
1d474968ca Add ability to build GnuCash with CMake
Backported from master.
2016-01-12 14:47:11 -08:00
Christian Stimming
a6f2ba86d7 Cutecash: Adapt to recent gconf file changes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23410 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-18 08:00:34 +00:00
Christian Stimming
2ed03ccc57 Cutecash: Adapt cmake files to recent file moves.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23054 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-06-19 15:47:13 +00:00
Christian Stimming
6b0ade1851 Get cutecash/C++ to compile again.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22767 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-08 20:47:42 +00:00
Christian Stimming
a919d56e50 [cutecash] add gnc-features.[hc] to cmake. Follow-up to r21981.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22056 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-19 20:32:41 +00:00
Christian Stimming
d0b8c4296e Fix cmake build after latest configure changes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20224 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-02-02 20:31:10 +00:00
Christian Stimming
906672a40d Cutecash: Add generation of dummy gnc-version.h file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19930 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 12:04:00 +00:00
Christian Stimming
50d5551266 Fix cmake declaration of BINDIR variable, needed because of r19651.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19697 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-24 09:17:23 +00:00
Christian Stimming
4e3be7b89c Cutecash: Fix file loading, saving, and save-as. Works fine now.
Also, use the new GDate setter/getter for the transaction time.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18926 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-17 19:24:01 +00:00
Christian Stimming
63fc328029 Add implementation of Gregorian - Jalali converter code.
Copied from http://www.farsiweb.ir/wiki/Iranian_calendar

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18867 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-07 13:51:54 +00:00
Christian Stimming
31fe219109 Cutecash: Fix CMakeLists for change in guile lookup, r18846
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18849 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-06 11:00:54 +00:00
Christian Stimming
18f663de25 Adapt cutecash to r18842.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18845 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 20:32:13 +00:00
Christian Stimming
2d045b67ae Adapt cmake to the file move in r18811.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18817 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 19:50:45 +00:00
Christian Stimming
dffacfefc7 Finish cmake build system for the C++ experiment.
To build this:

mkdir build-cpp
cd build-cpp
cmake ..
make
./src/gnc/cutecash

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18815 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 17:48:36 +00:00
Christian Stimming
3236b3c93c Also build backend/xml in cmake.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18743 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 11:37:14 +00:00
Christian Stimming
69dc9107ff Make CMake system more complete so that it builds on win32/mingw.
Also, add a test executable to check that we got all the
library dependencies.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18737 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 17:42:21 +00:00
Christian Stimming
a75e6bd547 More CMake work: Build swig wrappers correctly. Build gnc-module.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18736 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-25 17:42:00 +00:00
Christian Stimming
04e042eb90 More experimental cmake building.
Except for the scheme wrappers this seems to work until
at least the engine module. However, I didn't tackle the issue
with the generated headers which contain some installation
paths - but those we should get rid of anyway.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18721 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 19:44:59 +00:00