diff options
author | Mattes D <github@xoft.cz> | 2017-02-26 23:03:24 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-05-04 09:49:30 +0200 |
commit | 96fdd72d45221c03d9369c1edcddc83f27656fd4 (patch) | |
tree | fe96bbeaab2465924d4c613299c8002ba0b224e5 /tests/Generating/CMakeLists.txt | |
parent | Gen: Moved PiecePool into a separate file. (diff) | |
download | cuberite-96fdd72d45221c03d9369c1edcddc83f27656fd4.tar cuberite-96fdd72d45221c03d9369c1edcddc83f27656fd4.tar.gz cuberite-96fdd72d45221c03d9369c1edcddc83f27656fd4.tar.bz2 cuberite-96fdd72d45221c03d9369c1edcddc83f27656fd4.tar.lz cuberite-96fdd72d45221c03d9369c1edcddc83f27656fd4.tar.xz cuberite-96fdd72d45221c03d9369c1edcddc83f27656fd4.tar.zst cuberite-96fdd72d45221c03d9369c1edcddc83f27656fd4.zip |
Diffstat (limited to '')
-rw-r--r-- | tests/Generating/CMakeLists.txt (renamed from tests/PieceRotation/CMakeLists.txt) | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/tests/PieceRotation/CMakeLists.txt b/tests/Generating/CMakeLists.txt index bb1b37a53..4efb9dbe2 100644 --- a/tests/PieceRotation/CMakeLists.txt +++ b/tests/Generating/CMakeLists.txt @@ -65,8 +65,7 @@ set (SHARED_HDRS ${CMAKE_SOURCE_DIR}/src/WorldStorage/SchematicFileSerializer.h ) -set (SRCS - PieceRotationTest.cpp +set (STUBS Stubs.cpp LuaState_Typedefs.inc LuaState_Declaration.inc @@ -86,17 +85,37 @@ if (MSVC) list (APPEND SHARED_HDRS ${CMAKE_SOURCE_DIR}/src/LeakFinder.h ${CMAKE_SOURCE_DIR}/src/StackWalker.h) endif() -source_group("Shared" FILES ${SHARED_SRCS} ${SHARED_HDRS}) -source_group("Sources" FILES ${SRCS}) -add_executable(PieceRotation ${SRCS} ${SHARED_SRCS} ${SHARED_HDRS}) -target_link_libraries(PieceRotation tolualib zlib) +add_library(GeneratorTestingSupport STATIC ${SHARED_SRCS} ${SHARED_HDRS} ${STUBS}) +target_link_libraries(GeneratorTestingSupport tolualib zlib) +source_group("Stubs" FILES ${STUBS}) + + + + + +# LoadablePieces test: +source_group("Data files" FILES Test.cubeset Test1.schematic) +add_executable(LoadablePieces LoadablePieces.cpp Test.cubeset Test1.schematic) +target_link_libraries(LoadablePieces GeneratorTestingSupport) +add_test(NAME LoadablePieces-test WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND LoadablePieces) + + + + + +# PieceRotation test: +add_executable(PieceRotation PieceRotationTest.cpp) +target_link_libraries(PieceRotation GeneratorTestingSupport) add_test(NAME PieceRotation-test WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND PieceRotation) + # Put the projects into solution folders (MSVC): set_target_properties( + GeneratorTestingSupport + LoadablePieces PieceRotation - PROPERTIES FOLDER Tests + PROPERTIES FOLDER Tests/Generating ) |