From 17b6c7f43f5dfa5d64b5d03baf8d4fa655cf1ee3 Mon Sep 17 00:00:00 2001 From: Enno Date: Sat, 10 Apr 2010 20:20:12 +0200 Subject: [PATCH] include tests in make build process --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f0493b007..92569e959 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,3 +30,14 @@ if (WIN32) else (WIN32) target_link_libraries (eressea tolua xml2 ncurses lua5.1 pthread) 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)