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

Add an optional cppunit dependency for unit tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.