CMakeLists.txt 572 B

123456789101112
  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")