Add testing excecutable

This commit is contained in:
Marc Di Luzio 2014-12-16 13:12:51 +00:00
parent 3c61d1a72f
commit 3c74a2a609
3 changed files with 28 additions and 0 deletions

View file

@ -3,3 +3,4 @@ cmake_minimum_required( VERSION 2.8.7 )
# Subprojects # Subprojects
add_subdirectory( ttrts ) add_subdirectory( ttrts )
add_subdirectory( game ) add_subdirectory( game )
add_subdirectory( test )

20
test/CMakeLists.txt Normal file
View file

@ -0,0 +1,20 @@
# ====================== tests =======================
# Project name
project( ttrts-test )
include_directories(
../game
)
set( SOURCES
test.cpp
)
# Set to use c++11, because we're cool like that
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11" )
# Add the executable
add_executable( ttrts-test ${SOURCES} )
target_link_libraries( ttrts-test game )

7
test/test.cpp Normal file
View file

@ -0,0 +1,7 @@
#include "game.h"
// Main program entry point
int main()
{
tests::test_CBoardData();
};