Code

Cmake: Fix issue with generated sp-marshall.h/.cpp not linking
authorverbalshadow <verbalshadow@users.sourceforge.net>
Mon, 19 May 2008 22:57:01 +0000 (22:57 +0000)
committerverbalshadow <verbalshadow@users.sourceforge.net>
Mon, 19 May 2008 22:57:01 +0000 (22:57 +0000)
src/CMakeLists.txt
src/helper/CMakeLists.txt

index bf2492c5038fa49779307ed5973255cd1772a18d..6c4d475be53cf33898f5c9eb998007716778b30c 100644 (file)
@@ -575,7 +575,7 @@ FOREACH(dirlist ${srcfolders})
   SET(INKSCAPE_SRC ${INKSCAPE_SRC} ${${dirlist}_SRC})\r
 ENDFOREACH(dirlist)\r
 \r
-\r
+SET(INKSCAPE_SRC ${INKSCAPE_SRC} ${GlibOutput})\r
 # All directories containing lists files that describe building internal libraries\r
 SET(libfolders
 2geom\r
index 223301743a45219b682f29c2ab9f565ec28ead6a..4ad7db1b16afe8e00cde598245fc1c196bd77bcc 100644 (file)
@@ -1,6 +1,10 @@
 include(UseGlibMarshal)
 
 GLIB_MARSHAL(sp_marshal helper/sp-marshal "${CMAKE_CURRENT_BINARY_DIR}/helper")
+SET(GlibOutput
+${CMAKE_CURRENT_BINARY_DIR}/helper/sp-marshal.cpp
+${CMAKE_CURRENT_BINARY_DIR}/helper/sp-marshal.h
+)
 
 SET(helper_SRC
 action.cpp
@@ -15,5 +19,5 @@ unit-tracker.cpp
 window.cpp
 sp-marshal.list
 # we generate this file and it's .h counter-part
-#sp-marshal.cpp
+#${CMAKE_CURRENT_BINARY_DIR}/helper/sp-marshal.cpp
 )