forked from Gnucash/gnucash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
67 lines (63 loc) · 1.36 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
SET(accounts_SUBDIRS
C
cs
da
de_AT
de_CH
de_DE
el_GR
en_GB
es_ES
es_MX
fi_FI
fr_CA
fr_CH
fr_FR
hu_HU
it
# ja
ko
lt
lv
# nb
# nl
pl
pt_BR
pt_PT
ru
sk
sv_AX
sv_FI
sv_SE
tr_TR
zh_CN
zh_HK
zh_TW
)
# 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)