~charlesk/indicator-datetime/cpp

« back to all changes in this revision

Viewing changes to tests/CMakeLists.txt

  • Committer: Charles Kerr
  • Date: 2014-01-28 23:02:34 UTC
  • Revision ID: charles.kerr@canonical.com-20140128230234-291d863cz2h432lq
fix bootstrap error in unit tests by ensuring we always use the local gschema instead of the one preinstalled on the system

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
function(add_test_by_name name)
37
37
  set (TEST_NAME ${name})
38
 
  add_executable (${TEST_NAME} ${TEST_NAME}.cpp)
 
38
  add_executable (${TEST_NAME} ${TEST_NAME}.cpp gschemas.compiled)
39
39
  add_test (${TEST_NAME} ${TEST_NAME})
40
40
  add_dependencies (${TEST_NAME} libindicatordatetimeservice)
41
41
  target_link_libraries (${TEST_NAME} indicatordatetimeservice gtest ${SERVICE_DEPS_LIBRARIES} ${GTEST_LIBS})
55
55
 
56
56
function(add_dbusmock_test_by_name name)
57
57
  set (TEST_NAME ${name})
58
 
  add_executable (${TEST_NAME} ${TEST_NAME}.cpp)
 
58
  add_executable (${TEST_NAME} ${TEST_NAME}.cpp gschemas.compiled)
59
59
  add_test (${TEST_NAME} ${TEST_NAME})
60
60
  add_dependencies (${TEST_NAME} libindicatordatetimeservice)
61
61
  target_link_libraries (${TEST_NAME} indicatordatetimeservice gtest ${SERVICE_DEPS_LIBRARIES} ${DBUSTEST_LIBRARIES} ${GTEST_LIBS})