2024-01-15 18:56:41 +03:00
|
|
|
cmake_minimum_required(VERSION 3.7)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${PROJECT_SOURCE_DIR}/src
|
|
|
|
)
|
|
|
|
|
|
|
|
find_package(PkgConfig)
|
|
|
|
pkg_check_modules(MIRAL miral REQUIRED)
|
2024-07-14 21:12:54 +03:00
|
|
|
pkg_check_modules(MIRSERVER mirserver REQUIRED)
|
2024-01-15 18:56:41 +03:00
|
|
|
find_package(GTest REQUIRED)
|
2024-03-10 23:40:26 +03:00
|
|
|
pkg_check_modules(YAML REQUIRED IMPORTED_TARGET yaml-cpp)
|
|
|
|
|
2024-04-02 21:19:57 +03:00
|
|
|
add_executable(miracle-wm-tests
|
2024-07-14 21:12:54 +03:00
|
|
|
filesystem_configuration_test.cpp
|
|
|
|
tiling_window_tree_test.cpp
|
2024-05-21 01:06:39 +03:00
|
|
|
test_i3_command.cpp
|
2024-07-14 21:12:54 +03:00
|
|
|
test_animator.cpp
|
|
|
|
stub_configuration.h
|
|
|
|
stub_session.h
|
|
|
|
stub_surface.h)
|
2024-01-15 18:56:41 +03:00
|
|
|
|
2024-07-14 21:12:54 +03:00
|
|
|
target_include_directories(miracle-wm-tests PUBLIC SYSTEM
|
|
|
|
${GTEST_INCLUDE_DIRS}
|
|
|
|
${MIRAL_INCLUDE_DIRS}
|
|
|
|
${MIRSERVER_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(miracle-wm-tests
|
|
|
|
GTest::gtest_main
|
|
|
|
miracle-wm-implementation
|
|
|
|
${GTEST_LIBRARIES}
|
|
|
|
${MIRAL_LDFLAGS}
|
|
|
|
${MIRSERVER_LDFLAGS}
|
|
|
|
PkgConfig::YAML
|
|
|
|
pthread)
|
2024-04-11 15:31:43 +03:00
|
|
|
gtest_discover_tests(miracle-wm-tests)
|