~ubuntu-branches/ubuntu/vivid/mir/vivid

« back to all changes in this revision

Viewing changes to tests/unit-tests/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-01-08 02:04:38 UTC
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: package-import@ubuntu.com-20140108020438-e1npu0pm7qdv5wc4
Tags: upstream-0.1.3+14.04.20140108
ImportĀ upstreamĀ versionĀ 0.1.3+14.04.20140108

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
add_definitions(-DTEST_RECORDINGS_DIR="${CMAKE_CURRENT_SOURCE_DIR}/input_recordings/")
 
2
 
2
3
include_directories(${DRM_INCLUDE_DIRS} ${GBM_INCLUDE_DIRS} ${UMOCKDEV_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR})
3
4
 
4
5
set(
23
24
add_subdirectory(scene/)
24
25
add_subdirectory(draw/)
25
26
 
26
 
add_executable(unit-tests ${UNIT_TEST_SOURCES})
27
 
uses_android_input(unit-tests)
 
27
add_executable(mir_unit_tests ${UNIT_TEST_SOURCES})
 
28
uses_android_input(mir_unit_tests)
28
29
 
29
30
target_link_libraries(
30
 
  unit-tests
 
31
  mir_unit_tests
31
32
 
32
33
  mirclient
33
34
  mirserver
51
52
  ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
52
53
)
53
54
 
54
 
if (MIR_PLATFORM STREQUAL "gbm")
 
55
if (MIR_PLATFORM STREQUAL "mesa")
55
56
  target_link_libraries(
56
 
    unit-tests
 
57
    mir_unit_tests
57
58
 
58
59
    ${UMOCKDEV_LIBRARIES}
59
60
  )
60
61
  # Umockdev uses glib, which uses the deprecated "register" allocation specifier
61
62
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dregister=")
62
 
endif()  
63
 
 
64
 
mir_discover_tests(unit-tests LD_PRELOAD=libumockdev-preload.so.0)
 
63
endif()
 
64
 
 
65
mir_discover_tests(mir_unit_tests LD_PRELOAD=libumockdev-preload.so.0)
 
66
 
 
67
install(
 
68
    TARGETS mir_unit_tests
 
69
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
 
70
)