blob: f8781fd0b2dee23e9e8a15699c87ae9c929b1156 (
plain)
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
|
find_package(GMock)
# gtest-menuitems
include_directories(
${CMAKE_SOURCE_DIR}/src
${PROJECT_DEPS_INCLUDE_DIRS}
)
set_source_files_properties(gtest-menuitems.cpp PROPERTIES COMPILE_FLAGS ${COMPILE_FLAGS})
add_executable("gtest-menuitems" gtest-menuitems.cpp)
target_link_libraries("gtest-menuitems"
ayatana-ido3-0.4
${PROJECT_DEPS_LIBRARIES}
${GTEST_LIBRARIES}
${GTEST_BOTH_LIBRARIES}
${GMOCK_LIBRARIES}
)
add_test("gtest-menuitems" "gtest-menuitems")
# coverage
if (ENABLE_COVERAGE)
find_package(CoverageReport)
ENABLE_COVERAGE_REPORT(TARGETS "gtest-menuitems" TESTS "gtest-menuitems")
endif()
|