Changeset 642


Ignore:
Timestamp:
Feb 14, 2011, 2:26:23 AM (10 years ago)
Author:
sam
Message:

Add an optional cppunit dependency for unit tests.

Location:
trunk
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.am

    r630 r642  
    11
    2 SUBDIRS = src deushax monsterz tools art gfx
     2SUBDIRS = src test deushax monsterz tools art gfx
    33DIST_SUBDIRS = $(SUBDIRS) maps
    44
  • trunk/configure.ac

    r638 r642  
    4444AC_ARG_ENABLE(release,
    4545  [  --enable-release        build final release of the game (default no)])
     46
     47AC_ARG_ENABLE(cppunit,
     48  [  --enable-cppunit        use cppunit for unit tests (autodetected)])
    4649
    4750AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h)
     
    115118AM_CONDITIONAL(USE_GTKGL, test "${ac_cv_my_have_gtkgl}" != "no")
    116119
     120
     121dnl Use cppunit for unit tests?
     122PKG_CHECK_MODULES(CPPUNIT, cppunit, [CPPUNIT="yes"], [CPPUNIT="no"])
     123AM_CONDITIONAL(USE_CPPUNIT, test "$CPPUNIT" = "yes")
     124
     125
    117126# How to use the Lol Engine inside this tree
    118127LOL_CFLAGS="$LOL_CFLAGS -I \$(top_srcdir)/src $SDL_CFLAGS"
     
    130139  Makefile
    131140  src/Makefile
     141  test/Makefile
    132142  monsterz/Makefile
    133143  deushax/Makefile
Note: See TracChangeset for help on using the changeset viewer.