aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/CMakeLists.txt20
1 files changed, 17 insertions, 3 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 69bc291..f8781fd 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,11 +1,25 @@
+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_include_directories("gtest-menuitems" PUBLIC ${PROJECT_DEPS_INCLUDE_DIRS})
-target_include_directories("gtest-menuitems" PUBLIC "${CMAKE_SOURCE_DIR}/src")
+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")
-target_link_libraries("gtest-menuitems" ${PROJECT_DEPS_LIBRARIES} "-L${CMAKE_BINARY_DIR}/src" -layatana-ido3-0.4 gtest_main)
# coverage