Start CMake modernization scaffold

This commit is contained in:
2026-05-31 23:40:43 +02:00
parent ee027984b7
commit c38ff8209b
36 changed files with 2118 additions and 1556 deletions

23
tests/CMakeLists.txt Normal file
View File

@@ -0,0 +1,23 @@
add_library(pp_test_harness INTERFACE)
target_include_directories(pp_test_harness INTERFACE
"${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(pp_test_harness INTERFACE
pp_project_options
pp_project_warnings)
add_executable(pp_foundation_tests
foundation/binary_stream_tests.cpp)
target_link_libraries(pp_foundation_tests PRIVATE
pp_foundation
pp_test_harness)
add_test(NAME pp_foundation_tests COMMAND pp_foundation_tests)
set_tests_properties(pp_foundation_tests PROPERTIES
LABELS "foundation;desktop-fast")
if(TARGET pano_cli)
add_test(NAME pano_cli_create_document_smoke
COMMAND pano_cli create-document --width 64 --height 32 --layers 2)
set_tests_properties(pano_cli_create_document_smoke PROPERTIES
LABELS "integration;desktop-fast")
endif()