cmockery
cmockery copied to clipboard
[PATCH] Support for "out of source-tree" builds
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 protected]>
--- 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 protected] on 24 Oct 2008 at 3:54
Original comment by [email protected] on 10 Apr 2009 at 9:44
This will be integrated into cmockery release 0.1.3.
Original comment by [email protected] on 7 Jul 2009 at 7:42