CMakeLists.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. cmake_minimum_required(VERSION 3.20)
  2. project(SunrisePortableTests LANGUAGES CXX)
  3. enable_testing()
  4. add_executable(socket_row_relocation_test socket_row_relocation_test.cpp)
  5. target_compile_features(socket_row_relocation_test PRIVATE cxx_std_20)
  6. if(MSVC)
  7. target_compile_options(socket_row_relocation_test PRIVATE /W4 /WX /UNDEBUG)
  8. else()
  9. target_compile_options(socket_row_relocation_test PRIVATE -Wall -Wextra -Werror -UNDEBUG)
  10. endif()
  11. add_test(NAME socket_row_relocation
  12. COMMAND socket_row_relocation_test "${CMAKE_CURRENT_SOURCE_DIR}/fixtures/socket_rows.hex")
  13. add_executable(lore_visibility_test lore_visibility_test.cpp)
  14. target_compile_features(lore_visibility_test PRIVATE cxx_std_20)
  15. if(MSVC)
  16. target_compile_options(lore_visibility_test PRIVATE /W4 /WX /UNDEBUG)
  17. else()
  18. target_compile_options(lore_visibility_test PRIVATE -Wall -Wextra -Werror -UNDEBUG)
  19. endif()
  20. add_test(NAME lore_visibility COMMAND lore_visibility_test)
  21. add_executable(incident_payload_test
  22. incident_payload_test.cpp
  23. ../Sunrise/src/middleware/encoding/bit_reader.cpp
  24. ../Sunrise/src/middleware/encoding/bit_writer.cpp
  25. ../Sunrise/src/middleware/bap/activity_message/activity_incident_parser.cpp
  26. ../Sunrise/src/middleware/bap/activity_message/activity_incident_encoder.cpp
  27. ../Sunrise/src/middleware/bap/activity_message/activity_cinematic_incident_codec.cpp
  28. ../Sunrise/src/middleware/bap/activity_message/activity_player_trigger_incident_codec.cpp
  29. ../Sunrise/src/server/activity/mission/mission_script_cinematic.cpp)
  30. target_compile_features(incident_payload_test PRIVATE cxx_std_20)
  31. if(MSVC)
  32. target_compile_options(incident_payload_test PRIVATE /W4 /WX /UNDEBUG)
  33. else()
  34. target_compile_options(incident_payload_test PRIVATE -Wall -Wextra -Werror -UNDEBUG)
  35. endif()
  36. add_test(NAME incident_payload COMMAND incident_payload_test)