Add testing excecutable
This commit is contained in:
parent
3c61d1a72f
commit
3c74a2a609
3 changed files with 28 additions and 0 deletions
|
@ -3,3 +3,4 @@ cmake_minimum_required( VERSION 2.8.7 )
|
|||
# Subprojects
|
||||
add_subdirectory( ttrts )
|
||||
add_subdirectory( game )
|
||||
add_subdirectory( test )
|
||||
|
|
20
test/CMakeLists.txt
Normal file
20
test/CMakeLists.txt
Normal 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
7
test/test.cpp
Normal file
|
@ -0,0 +1,7 @@
|
|||
#include "game.h"
|
||||
|
||||
// Main program entry point
|
||||
int main()
|
||||
{
|
||||
tests::test_CBoardData();
|
||||
};
|
Loading…
Add table
Reference in a new issue