diff options
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..39cde1f --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,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() |