~gary-wzl77/+junk/newproperty

« back to all changes in this revision

Viewing changes to tests/unit/CMakeLists.txt

  • Committer: Gary.Wzl
  • Date: 2015-08-31 09:23:43 UTC
  • Revision ID: gary.wang@canonical.com-20150831092343-x7coc5ukz9yelqjn
Init repo

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# Our test executable.
 
3
# It includes the object code from the scope
 
4
add_executable(
 
5
  scope-unit-tests
 
6
  scope/test-scope.cpp
 
7
  $<TARGET_OBJECTS:scope-static>
 
8
)
 
9
 
 
10
# Link against the scope, and all of our test lib dependencies
 
11
target_link_libraries(
 
12
  scope-unit-tests
 
13
  ${GTEST_BOTH_LIBRARIES}
 
14
  ${GMOCK_LIBRARIES}
 
15
  ${SCOPE_LDFLAGS}
 
16
  ${TEST_LDFLAGS}
 
17
  ${Boost_LIBRARIES}
 
18
)
 
19
 
 
20
qt5_use_modules(
 
21
  scope-unit-tests
 
22
  Core
 
23
)
 
24
 
 
25
# Register the test with CTest
 
26
add_test(
 
27
  scope-unit-tests
 
28
  scope-unit-tests
 
29
)
 
30