include tests in make build process

This commit is contained in:
Enno 2010-04-10 20:20:12 +02:00
parent 91c2227051
commit 17b6c7f43f
1 changed files with 11 additions and 0 deletions

View File

@ -30,3 +30,14 @@ if (WIN32)
else (WIN32) else (WIN32)
target_link_libraries (eressea tolua xml2 ncurses lua5.1 pthread) target_link_libraries (eressea tolua xml2 ncurses lua5.1 pthread)
endif (WIN32) endif (WIN32)
add_definitions(-DUNITY_BUILD)
set (TESTS_SRCS
../server/src/tests.c
../external/cutest/CuTest.c
)
add_executable (tests ${LIB_SRCS} ${TESTS_SRCS})
if (WIN32)
else (WIN32)
target_link_libraries (tests tolua xml2 ncurses lua5.1 pthread)
endif (WIN32)