Skip to content

Commit

Permalink
Moved world test into worlds folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Scor23 committed Oct 11, 2023
1 parent 2bb939a commit dd57e1b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ cmake_minimum_required(VERSION 3.10)

set(MAIN_SOURCE_DIR ../${MAIN_SOURCE_DIR})
add_subdirectory(core)
add_subdirectory(Worlds)
20 changes: 20 additions & 0 deletions tests/unit/Worlds/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cmake_minimum_required(VERSION 3.10)
#project(tests-unit VERSION 0.1)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)

file(STRINGS targets.txt TARGETS)

set(MAIN_SOURCE_DIR ../${MAIN_SOURCE_DIR})

foreach(TARGET IN LISTS TARGETS)
add_executable(tests-unit-worlds-${TARGET} ${TARGET}.cpp)

target_include_directories(tests-unit-worlds-${TARGET}
PRIVATE ${MAIN_SOURCE_DIR}
)
target_link_libraries(tests-unit-worlds-${TARGET}
PRIVATE Catch2::Catch2WithMain
)
endforeach()
File renamed without changes.
1 change: 1 addition & 0 deletions tests/unit/Worlds/targets.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ManualWorld
1 change: 0 additions & 1 deletion tests/unit/core/targets.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
Data
WorldGrid
ManualWorld

0 comments on commit dd57e1b

Please sign in to comment.