CMakeLists.txt 752 B

1234567891011121314151617181920212223242526272829303132
  1. cmake_minimum_required(VERSION 3.20)
  2. project(lumacs_tests)
  3. # Set C++ standard
  4. set(CMAKE_CXX_STANDARD 20)
  5. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  6. # Add includes
  7. include_directories(${CMAKE_SOURCE_DIR}/include)
  8. # Google Test targets are now globally available from the root CMakeLists.txt
  9. # No need for find_package(GTest) here.
  10. # Build tests executable
  11. add_executable(test_runner
  12. test_buffer.cpp
  13. test_editor_core.cpp
  14. test_input_pipeline.cpp
  15. test_buffer_manager.cpp
  16. test_window_manager.cpp
  17. test_kill_ring_manager.cpp
  18. test_register_manager.cpp
  19. )
  20. target_link_libraries(test_runner PRIVATE
  21. lumacs_core
  22. GTest::gtest_main
  23. )
  24. # Automatically discover and register tests
  25. include(GoogleTest)
  26. gtest_discover_tests(test_runner)