aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
blob: 69bc2911fd18723460aab50b10df45198f52fc18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# gtest-menuitems

set_source_files_properties(gtest-menuitems.cpp PROPERTIES COMPILE_FLAGS ${COMPILE_FLAGS})
add_executable("gtest-menuitems" gtest-menuitems.cpp)
target_include_directories("gtest-menuitems" PUBLIC ${PROJECT_DEPS_INCLUDE_DIRS})
target_include_directories("gtest-menuitems" PUBLIC "${CMAKE_SOURCE_DIR}/src")
add_test("gtest-menuitems" "gtest-menuitems")
target_link_libraries("gtest-menuitems" ${PROJECT_DEPS_LIBRARIES} "-L${CMAKE_BINARY_DIR}/src" -layatana-ido3-0.4 gtest_main)


# coverage
if (ENABLE_COVERAGE)
    find_package(CoverageReport)
    ENABLE_COVERAGE_REPORT(TARGETS "gtest-menuitems" TESTS "gtest-menuitems")
endif()