From c939720c103c6d4eac8a36cd26639b5b4b9f05cd Mon Sep 17 00:00:00 2001 From: Mattes D Date: Wed, 22 Mar 2017 14:05:28 +0100 Subject: Gen: Added a simple PieceGeneratorBFSTree test. --- tests/Generating/CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/Generating/CMakeLists.txt') diff --git a/tests/Generating/CMakeLists.txt b/tests/Generating/CMakeLists.txt index 4efb9dbe2..269ab50ab 100644 --- a/tests/Generating/CMakeLists.txt +++ b/tests/Generating/CMakeLists.txt @@ -112,10 +112,24 @@ add_test(NAME PieceRotation-test WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} C +# PieceGeneratorBFSTree test: +add_executable(PieceGeneratorBFSTree + PieceGeneratorBFSTreeTest.cpp + ${CMAKE_SOURCE_DIR}/src/Generating/PieceGeneratorBFSTree.cpp + ${CMAKE_SOURCE_DIR}/src/Generating/PieceGeneratorBFSTree.h +) +target_link_libraries(PieceGeneratorBFSTree GeneratorTestingSupport) +add_test(NAME PieceGeneratorBFSTree-test WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/Server/Prefabs/PieceStructures COMMAND PieceGeneratorBFSTree) + + + + + # Put the projects into solution folders (MSVC): set_target_properties( GeneratorTestingSupport LoadablePieces + PieceGeneratorBFSTree PieceRotation PROPERTIES FOLDER Tests/Generating ) -- cgit v1.2.3