blob: 39cde1fa64f2b00f304a8fc15cfd3bc5406ad1d1 (
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
30
31
32
|
find_package(GMock)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -no-pie")
# 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")
add_dependencies("gtest-menuitems" ayatana-ido3-0.4)
# coverage
if (ENABLE_COVERAGE)
find_package(CoverageReport)
ENABLE_COVERAGE_REPORT(TARGETS "gtest-menuitems" TESTS "gtest-menuitems")
endif()
|