r18817 - gnucash/trunk/src - Adapt cmake to the file move in r18811.

Christian Stimming cstim at code.gnucash.org
Thu Mar 4 14:50:45 EST 2010


Author: cstim
Date: 2010-03-04 14:50:45 -0500 (Thu, 04 Mar 2010)
New Revision: 18817
Trac: http://svn.gnucash.org/trac/changeset/18817

Modified:
   gnucash/trunk/src/core-utils/CMakeLists.txt
   gnucash/trunk/src/engine/CMakeLists.txt
   gnucash/trunk/src/gnc/main.cpp
   gnucash/trunk/src/gnc/mainwindow.cpp
Log:
Adapt cmake to the file move in r18811.

Modified: gnucash/trunk/src/core-utils/CMakeLists.txt
===================================================================
--- gnucash/trunk/src/core-utils/CMakeLists.txt	2010-03-04 19:21:52 UTC (rev 18816)
+++ gnucash/trunk/src/core-utils/CMakeLists.txt	2010-03-04 19:50:45 UTC (rev 18817)
@@ -9,30 +9,49 @@
 INCLUDE_DIRECTORIES (${LIBGUILE_INCLUDE_PATH})
 INCLUDE_DIRECTORIES (${CMAKE_BINARY_DIR}/src ) # for config.h
 INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR}/..) # for gnc-ui.h
+INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR}/../libqof/qof) # for gnc-ui.h
 INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR}) # when building swig-core-utils.c
+INCLUDE_DIRECTORIES (${CMAKE_CURRENT_BINARY_DIR}) # for gncla-dir.h
 
 # Command to generate the swig-engine.c wrapper file
 SET (SWIG_CORE_UTILS_C ${CMAKE_CURRENT_BINARY_DIR}/swig-core-utils.c)
 GNC_ADD_SWIG_COMMAND (${SWIG_CORE_UTILS_C} ${CMAKE_CURRENT_SOURCE_DIR}/core-utils.i)
 
 SET (libgnc_core_utils_SOURCES
-  gnc-main.c
+  binreloc.c
+  gnc-filepath-utils.c
   gnc-gconf-utils.c
   gnc-gdate-utils.c
   gnc-gkeyfile-utils.c
   gnc-glib-utils.c
+  gnc-main.c
+  gnc-path.c
   ${SWIG_CORE_UTILS_C}
 )
 
 # Add dependency on config.h
 SET_SOURCE_FILES_PROPERTIES (${libgnc_core_utils_SOURCES} PROPERTIES OBJECT_DEPENDS ${CONFIG_H})
 
+# Workaround to create a very simple gncla-dir.h file
+FILE (WRITE ${CMAKE_CURRENT_BINARY_DIR}/gncla-dir.h.tmp "
+#define PREFIX \"${CMAKE_INSTALL_PREFIX}\"
+#define DATADIR \"${CMAKE_INSTALL_PREFIX}/share\"
+#define SYSCONFDIR \"${CMAKE_INSTALL_PREFIX}/etc\"
+#define LIBDIR \"${CMAKE_INSTALL_PREFIX}/lib\"
+#define LOCALE_DATADIRNAME \"share\"
+")
+# Let cmake copy the created file only on changes.
+CONFIGURE_FILE (${CMAKE_CURRENT_BINARY_DIR}/gncla-dir.h.tmp ${CMAKE_CURRENT_BINARY_DIR}/gncla-dir.h COPYONLY)
+
 SET (libgnc_core_utils_HEADERS
-  gnc-main.h
+  binreloc.h
+  gnc-filepath-utils.h
   gnc-gconf-utils.h
   gnc-gdate-utils.h
   gnc-gkeyfile-utils.h
   gnc-glib-utils.h
+  gnc-main.h
+  gnc-path.h
 )
 
 ADD_LIBRARY	(core-utils

Modified: gnucash/trunk/src/engine/CMakeLists.txt
===================================================================
--- gnucash/trunk/src/engine/CMakeLists.txt	2010-03-04 19:21:52 UTC (rev 18816)
+++ gnucash/trunk/src/engine/CMakeLists.txt	2010-03-04 19:50:45 UTC (rev 18817)
@@ -12,7 +12,7 @@
 INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/gnc-module) # for gnc-glib-utils.h
 INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/src/core-utils) # for gnc-glib-utils.h
 INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR}) # for <Account.h>
-INCLUDE_DIRECTORIES (${CMAKE_CURRENT_BINARY_DIR}) # for gncla-dir.h
+INCLUDE_DIRECTORIES (${CMAKE_CURRENT_BINARY_DIR}) # for iso-4217-currencies.c
 
 SET (libgncmod_engine_HEADERS
   Account.h
@@ -33,7 +33,6 @@
   Split.h
   TransLog.h
   Transaction.h
-  binreloc.h
   cap-gains.h
   cashobjects.h
   engine-helpers.h
@@ -43,9 +42,7 @@
   gnc-commodity.h
   gnc-engine.h
   gnc-event.h
-  gnc-filepath-utils.h
   gnc-hooks.h
-  gnc-path.h
   gnc-pricedb.h
   gnc-session.h
   gnc-session-scm.h
@@ -58,17 +55,6 @@
 SET (SWIG_ENGINE_C ${CMAKE_CURRENT_BINARY_DIR}/swig-engine.c)
 GNC_ADD_SWIG_COMMAND (${SWIG_ENGINE_C} ${CMAKE_CURRENT_SOURCE_DIR}/engine.i)
 
-# Workaround to create a very simple gncla-dir.h file
-FILE (WRITE ${CMAKE_CURRENT_BINARY_DIR}/gncla-dir.h.tmp "
-#define PREFIX \"${CMAKE_INSTALL_PREFIX}\"
-#define DATADIR \"${CMAKE_INSTALL_PREFIX}/share\"
-#define SYSCONFDIR \"${CMAKE_INSTALL_PREFIX}/etc\"
-#define LIBDIR \"${CMAKE_INSTALL_PREFIX}/lib\"
-#define LOCALE_DATADIRNAME \"share\"
-")
-# Let cmake copy the created file only on changes.
-CONFIGURE_FILE (${CMAKE_CURRENT_BINARY_DIR}/gncla-dir.h.tmp ${CMAKE_CURRENT_BINARY_DIR}/gncla-dir.h COPYONLY)
-
 # Command to generate the iso-4217-currencies.c file
 SET (ISO_4217_C ${CMAKE_CURRENT_BINARY_DIR}/iso-4217-currencies.c)
 ADD_CUSTOM_COMMAND (
@@ -106,17 +92,14 @@
   Split.c
   TransLog.c
   Transaction.c
-  binreloc.c
   cap-gains.c
   cashobjects.c
   gnc-associate-account.c
   gnc-budget.c
   gnc-commodity.c
   gnc-engine.c
-  gnc-filepath-utils.c
   gnc-hooks.c
   gnc-lot.c
-  gnc-path.c
   gnc-pricedb.c
   gnc-session.c
   gnc-session-scm.c

Modified: gnucash/trunk/src/gnc/main.cpp
===================================================================
--- gnucash/trunk/src/gnc/main.cpp	2010-03-04 19:21:52 UTC (rev 18816)
+++ gnucash/trunk/src/gnc/main.cpp	2010-03-04 19:50:45 UTC (rev 18817)
@@ -31,11 +31,11 @@
 #include <glib/gi18n.h>
 #include <glib.h>
 #include "gnc-module/gnc-module.h"
-#include "engine/gnc-path.h"
-#include "engine/binreloc.h"
+#include "core-utils/gnc-path.h"
+#include "core-utils/binreloc.h"
     /* #include "gnc-version.h" */
 #include "engine/gnc-engine.h"
-#include "engine/gnc-filepath-utils.h"
+#include "core-utils/gnc-filepath-utils.h"
 #include "engine/gnc-hooks.h"
 #include "engine/gnc-commodity.h"
 #include "core-utils/gnc-main.h"

Modified: gnucash/trunk/src/gnc/mainwindow.cpp
===================================================================
--- gnucash/trunk/src/gnc/mainwindow.cpp	2010-03-04 19:21:52 UTC (rev 18816)
+++ gnucash/trunk/src/gnc/mainwindow.cpp	2010-03-04 19:50:45 UTC (rev 18817)
@@ -14,7 +14,7 @@
 #include <glib/gi18n.h>
 #include "qof.h"
 #include "engine/gnc-hooks.h"
-#include "engine/gnc-filepath-utils.h"
+#include "core-utils/gnc-filepath-utils.h"
 #include "engine/Account.h"
 #include "engine/TransLog.h"
 }



More information about the gnucash-changes mailing list