Checkpoint 3: deliver playable samples and complete native authoring workflows
This commit is contained in:
@@ -12,3 +12,18 @@ if(BUILD_TESTING AND TARGET faset_runtime)
|
||||
add_test(NAME tutorial_${tutorial} COMMAND faset_tutorial_${tutorial}_tests)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
if(BUILD_TESTING AND TARGET faset_runtime)
|
||||
foreach(dimension 2 3)
|
||||
set(project_dir "${PROJECT_SOURCE_DIR}/examples/projects/collect-${dimension}d")
|
||||
add_library(faset_example_${dimension}d STATIC "${project_dir}/Scripts/Gameplay.cpp")
|
||||
target_include_directories(faset_example_${dimension}d PUBLIC "${project_dir}/Scripts")
|
||||
target_link_libraries(faset_example_${dimension}d PUBLIC faset_runtime)
|
||||
add_executable(faset_example_${dimension}d_tests "${PROJECT_SOURCE_DIR}/tests/runtime_tutorials_projects.cpp")
|
||||
target_link_libraries(faset_example_${dimension}d_tests PRIVATE faset_example_${dimension}d)
|
||||
target_compile_definitions(faset_example_${dimension}d_tests PRIVATE
|
||||
FASET_EXAMPLE_DIMENSION=${dimension}
|
||||
FASET_EXAMPLE_PROJECT="${project_dir}")
|
||||
add_test(NAME playable_${dimension}d COMMAND faset_example_${dimension}d_tests)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user