File: CMakeLists.txt

package info (click to toggle)
mir 2.25.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 22,080 kB
  • sloc: cpp: 192,777; xml: 13,784; ansic: 8,207; python: 1,304; sh: 794; makefile: 258
file content (36 lines) | stat: -rw-r--r-- 906 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

mir_add_wrapped_executable(mir_examples_tests NOINSTALL
  test_floating_window_manager.cpp)

target_include_directories(mir_examples_tests
  PRIVATE
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${PROJECT_SOURCE_DIR}/tests/include
  ${PROJECT_SOURCE_DIR}/include/test
  ${PROJECT_SOURCE_DIR}/src/include/common
  ${PROJECT_SOURCE_DIR}/src/include/server
  ${GMOCK_INCLUDE_DIR}
  ${GTEST_INCLUDE_DIR})

target_link_libraries(mir_examples_tests
  mir-test-static
  mir-public-test-framework
  mir-test-framework-static
  mir-test-doubles-static
  mircommon
  miral
  example-shell-lib
  ${GTEST_BOTH_LIBRARIES}
  ${GMOCK_LIBRARIES})

CMAKE_DEPENDENT_OPTION(
  MIR_RUN_EXAMPLES_TESTS
  "Run tests on examples as part of default testing"
  ON
  "MIR_RUN_EXAMPLES_TESTS"
  OFF)

if (MIR_RUN_EXAMPLES_TESTS)
  mir_discover_tests_with_fd_leak_detection(mir_examples_tests)
endif (MIR_RUN_EXAMPLES_TESTS)