Checkpoint 3: deliver playable samples and complete native authoring workflows
This commit is contained in:
+11
-1
@@ -63,6 +63,12 @@ if(TARGET faset_editor_commands AND TARGET faset_build_service)
|
||||
include(cmake/Plugins.cmake)
|
||||
add_library(faset_editor_session STATIC src/editor/session.cpp)
|
||||
target_link_libraries(faset_editor_session PUBLIC faset_editor_commands faset_build_service faset_assets faset_editor_plugins)
|
||||
if(BUILD_TESTING)
|
||||
add_executable(faset_editor_session_tests tests/editor_session_tests.cpp)
|
||||
target_link_libraries(faset_editor_session_tests PRIVATE faset_editor_session)
|
||||
target_compile_definitions(faset_editor_session_tests PRIVATE FASET_TEST_ENGINE="${PROJECT_SOURCE_DIR}")
|
||||
add_test(NAME editor_session_settings COMMAND faset_editor_session_tests)
|
||||
endif()
|
||||
endif()
|
||||
foreach(module UI EditorUI Editor Applications)
|
||||
if(NOT FASET_BUILD_EDITOR)
|
||||
@@ -83,10 +89,14 @@ if(TARGET faset_editor_session)
|
||||
set_tests_properties(editor_mcp_stdio PROPERTIES TIMEOUT 60)
|
||||
endif()
|
||||
if(TARGET faset_editor_ui)
|
||||
target_link_libraries(faset_editor PRIVATE faset_editor_ui)
|
||||
target_link_libraries(faset_editor PRIVATE faset_editor_ui faset_project_launcher)
|
||||
target_link_libraries(faset_editor PRIVATE faset_stb)
|
||||
target_compile_definitions(faset_editor PRIVATE FASET_HAS_EDITOR_UI=1)
|
||||
target_sources(faset_editor PRIVATE apps/editor_gui.cpp)
|
||||
if(BUILD_TESTING)
|
||||
add_test(NAME editor_gui_mcp COMMAND ${Python3_EXECUTABLE} ${PROJECT_SOURCE_DIR}/tests/editor_gui_mcp_test.py $<TARGET_FILE:faset_editor>)
|
||||
set_tests_properties(editor_gui_mcp PROPERTIES LABELS "gpu;window" TIMEOUT 180)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user