yodamaster / cmockery

Automatically exported from code.google.com/p/cmockery
0 stars 0 forks source link

[PATCH] Support for "out of source-tree" builds #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Below is a patch to allow building of cmockery outside of the source
directory. 

It has been tested against subversion trunk, and passes 'make distcheck'.

Signed-off-by: Chris Heller <email.heller@gmail.com>

--- cmockery-20081023/Makefile.am       2008-10-23 23:31:02.000000000 -0400
+++ cmockery-out-of-source-tree/Makefile.am     2008-10-23
23:32:28.000000000 -0400
@@ -46,13 +46,13 @@

 lib_LTLIBRARIES += libcmockery.la
 libcmockery_la_SOURCES = src/config.h src/cmockery.c src/google/cmockery.h
-libcmockery_la_CFLAGS = -Isrc/google
+libcmockery_la_CFLAGS = -I$(top_srcdir)/src/google

 noinst_PROGRAMS = calculator
 calculator_SOURCES = src/example/calculator.c src/config.h
 calculator_CFLAGS =

-unit_test_CFLAGS = -Isrc/google -Isrc/example -DUNIT_TESTING=1
+unit_test_CFLAGS = -I$(top_srcdir)/src/google -I$(top_srcdir)/src/example
-DUNIT_TESTING=1

 noinst_PROGRAMS += calculator_test
 calculator_test_SOURCES = src/example/calculator_test.c \

Original issue reported on code.google.com by email.he...@gmail.com on 24 Oct 2008 at 3:54

GoogleCodeExporter commented 9 years ago

Original comment by stewarta...@gmail.com on 10 Apr 2009 at 8:37

GoogleCodeExporter commented 9 years ago

Original comment by stewarta...@gmail.com on 10 Apr 2009 at 9:44

GoogleCodeExporter commented 9 years ago
This will be integrated into cmockery release 0.1.3.

Original comment by stewarta...@gmail.com on 7 Jul 2009 at 7:42