aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-01-28 17:02:34 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-01-28 17:02:34 -0600
commit793c6fb6550b8a0c95df695aed70dc1777e501df (patch)
tree784a76b43a02fec6436f37430b9f76b6e3f5f2fe /tests/CMakeLists.txt
parentfd92ac35f12176225e910f1d25f57acf16a35cda (diff)
downloadayatana-indicator-datetime-793c6fb6550b8a0c95df695aed70dc1777e501df.tar.gz
ayatana-indicator-datetime-793c6fb6550b8a0c95df695aed70dc1777e501df.tar.bz2
ayatana-indicator-datetime-793c6fb6550b8a0c95df695aed70dc1777e501df.zip
fix bootstrap error in unit tests by ensuring we always use the local gschema instead of the one preinstalled on the system
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index c909e0e..c86b4bb 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -35,7 +35,7 @@ add_definitions (-DSANDBOX="${CMAKE_CURRENT_BINARY_DIR}")
function(add_test_by_name name)
set (TEST_NAME ${name})
- add_executable (${TEST_NAME} ${TEST_NAME}.cpp)
+ add_executable (${TEST_NAME} ${TEST_NAME}.cpp gschemas.compiled)
add_test (${TEST_NAME} ${TEST_NAME})
add_dependencies (${TEST_NAME} libindicatordatetimeservice)
target_link_libraries (${TEST_NAME} indicatordatetimeservice gtest ${SERVICE_DEPS_LIBRARIES} ${GTEST_LIBS})
@@ -55,7 +55,7 @@ add_test_by_name(test-utils)
function(add_dbusmock_test_by_name name)
set (TEST_NAME ${name})
- add_executable (${TEST_NAME} ${TEST_NAME}.cpp)
+ add_executable (${TEST_NAME} ${TEST_NAME}.cpp gschemas.compiled)
add_test (${TEST_NAME} ${TEST_NAME})
add_dependencies (${TEST_NAME} libindicatordatetimeservice)
target_link_libraries (${TEST_NAME} indicatordatetimeservice gtest ${SERVICE_DEPS_LIBRARIES} ${DBUSTEST_LIBRARIES} ${GTEST_LIBS})