Permalink
Browse files

Cutecash: Add cmake files for import module and for aqbanking module.

However, this couldn't really re-use all non-GUI code because most code still
contains minor gtk bits here and there. But in the long run much more
code might be available.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20610 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information...
cstim committed May 3, 2011
1 parent 7b2e538 commit 6ebb93ba44e11f54d0a818043b665aeb2bd388ed
Showing with 99 additions and 0 deletions.
  1. +7 −0 CMakeLists.txt
  2. +1 −0 src/CMakeLists.txt
  3. +7 −0 src/gnc/CMakeLists.txt
  4. +44 −0 src/import-export/CMakeLists.txt
  5. +40 −0 src/import-export/aqbanking/CMakeLists.txt
View
@@ -26,6 +26,7 @@ INCLUDE (CheckIncludeFiles)
# ############################################################
OPTION (WITH_SQL "Build this project with SQL (libdbi) support" OFF)
+OPTION (WITH_AQBANKING "Build this project with aqbanking (online banking) support" OFF)
# ############################################################
@@ -109,6 +110,12 @@ ENDIF (WITH_SQL)
SET (QT_MIN_VERSION "4.5.0")
FIND_PACKAGE (Qt4 REQUIRED) # find and setup Qt4 for this project
+# ############################################################
+IF (WITH_AQBANKING)
+ PKG_CHECK_MODULES (GWENHYWFAR REQUIRED gwenhywfar)
+ PKG_CHECK_MODULES (AQBANKING REQUIRED aqbanking)
+ENDIF (WITH_AQBANKING)
+
# ############################################################
# Compiler flags
View
@@ -90,6 +90,7 @@ ADD_SUBDIRECTORY (engine)
ADD_SUBDIRECTORY (backend/xml)
ADD_SUBDIRECTORY (calculation)
ADD_SUBDIRECTORY (app-utils)
+ADD_SUBDIRECTORY (import-export)
IF (WITH_SQL)
ADD_SUBDIRECTORY (backend/dbi)
ADD_SUBDIRECTORY (backend/sql)
View
@@ -8,6 +8,8 @@ LINK_DIRECTORIES (${GLIB2_LIBRARY_DIRS}
${GTHREAD_LIBRARY_DIRS}
${GCONF2_LIBRARY_DIRS}
${GUILE_LIBRARY_DIRS}
+# ${GWENHYWFAR_LIBRARY_DIRS}
+# ${AQBANKING_LIBRARY_DIRS}
)
SET (gnc_SOURCES
@@ -97,11 +99,16 @@ ADD_EXECUTABLE (cutecash
)
TARGET_LINK_LIBRARIES (cutecash gnc-backend-xml)
+TARGET_LINK_LIBRARIES (cutecash gnc-import)
TARGET_LINK_LIBRARIES (cutecash app-utils calculation)
IF (WITH_SQL)
TARGET_LINK_LIBRARIES (cutecash gnc-backend-dbi gnc-backend-sql)
TARGET_LINK_LIBRARIES (cutecash ${LIBDBI_LIBRARY})
ENDIF (WITH_SQL)
+IF (WITH_AQBANKING)
+ TARGET_LINK_LIBRARIES (cutecash gnc-aqbanking)
+# TARGET_LINK_LIBRARIES (cutecash ${AQBANKING_LIBRARIES} ${GWENHYWFAR_LIBRARIES})
+ENDIF (WITH_AQBANKING)
TARGET_LINK_LIBRARIES (cutecash engine gnc-module core-utils qof)
TARGET_LINK_LIBRARIES (cutecash ${GCONF2_LIBRARIES})
TARGET_LINK_LIBRARIES (cutecash ${GTHREAD_LIBRARIES} ${GOBJECT_LIBRARIES} ${GMODULE_LIBRARIES} ${GLIB2_LIBRARIES})
@@ -0,0 +1,44 @@
+# CMakeLists.txt for src/import-export
+
+# ############################################################
+
+IF (WITH_AQBANKING)
+ ADD_SUBDIRECTORY (aqbanking)
+ENDIF (WITH_AQBANKING)
+
+ADD_DEFINITIONS (-DG_LOG_DOMAIN=\"gnc.import\")
+
+INCLUDE_DIRECTORIES (${GLIB2_INCLUDE_DIRS})
+INCLUDE_DIRECTORIES (${GCONF2_INCLUDE_DIRS})
+#INCLUDE_DIRECTORIES (${LIBINTL_INCLUDE_PATH})
+#INCLUDE_DIRECTORIES (${REGEX_INCLUDE_PATH})
+#INCLUDE_DIRECTORIES (${GUILE_INCLUDE_DIRS})
+INCLUDE_DIRECTORIES (${CMAKE_BINARY_DIR}/src ) # for config.h
+INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/lib/libc) # for pow.h
+INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src ) # for gnc-ui.h
+INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/libqof/qof) # for qof.h
+INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/gnc-module) # for gnc-module.h
+INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/core-utils) # for gnc-glib-utils.h
+INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/engine)
+INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/app-utils)
+
+SET (libgnc_import_SOURCES
+ import-utilities.c
+ import-settings.c
+ import-match-map.c
+)
+
+# Add dependency on config.h
+SET_SOURCE_FILES_PROPERTIES (${libgnc_import_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
+
+SET (libgnc_import_HEADERS
+ import-utilities.h
+ import-settings.h
+ import-match-map.h
+)
+
+ADD_LIBRARY (gnc-import
+ ${libgnc_import_SOURCES}
+ ${libgnc_import_HEADERS}
+ )
+
@@ -0,0 +1,40 @@
+# CMakeLists.txt for src/import-export/aqbanking
+
+# ############################################################
+
+ADD_DEFINITIONS (-DG_LOG_DOMAIN=\"gnc.import.aqbanking\")
+
+INCLUDE_DIRECTORIES (${GLIB2_INCLUDE_DIRS})
+INCLUDE_DIRECTORIES (${GCONF2_INCLUDE_DIRS})
+#INCLUDE_DIRECTORIES (${LIBINTL_INCLUDE_PATH})
+#INCLUDE_DIRECTORIES (${REGEX_INCLUDE_PATH})
+#INCLUDE_DIRECTORIES (${GUILE_INCLUDE_DIRS})
+INCLUDE_DIRECTORIES (${GWENHYWFAR_INCLUDE_DIRS})
+INCLUDE_DIRECTORIES (${AQBANKING_INCLUDE_DIRS})
+INCLUDE_DIRECTORIES (${CMAKE_BINARY_DIR}/src ) # for config.h
+INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/lib/libc) # for pow.h
+INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src ) # for gnc-ui.h
+INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/libqof/qof) # for qof.h
+INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/gnc-module) # for gnc-module.h
+INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/core-utils) # for gnc-glib-utils.h
+INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/engine)
+
+SET (libgnc_aqbanking_SOURCES
+ gnc-ab-kvp.c
+# gnc-ab-utils.c
+# gnc-gwen-gui.c
+)
+
+# Add dependency on config.h
+SET_SOURCE_FILES_PROPERTIES (${libgnc_aqbanking_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
+
+SET (libgnc_aqbanking_HEADERS
+ gnc-ab-kvp.h
+# gnc-ab-utils.h
+# gnc-gwen-gui.h
+)
+
+ADD_LIBRARY (gnc-aqbanking
+ ${libgnc_aqbanking_SOURCES}
+ ${libgnc_aqbanking_HEADERS}
+ )

0 comments on commit 6ebb93b

Please sign in to comment.