~mir-team/unity-mir/staged-next-rev

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Michael Terry
  • Date: 2014-02-18 22:20:29 UTC
  • mfrom: (180 unity-mir)
  • mto: This revision was merged to the branch mainline in revision 182.
  • Revision ID: michael.terry@canonical.com-20140218222029-wfltid653bs70r52
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
project(Unity-Mir)
4
4
 
 
5
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
 
6
 
5
7
# Find includes in corresponding build directories
6
8
set(CMAKE_INCLUDE_CURRENT_DIR ON)
7
9
# Instruct CMake to run moc automatically when needed.
58
60
find_package(Qt5Quick REQUIRED)
59
61
find_package(Qt5DBus REQUIRED)
60
62
 
 
63
find_package(Protobuf REQUIRED)
 
64
if(PROTOBUF_PROTOC_EXECUTABLE STREQUAL "PROTOBUF_PROTOC_EXECUTABLE-NOTFOUND")
 
65
  message(SEND_ERROR "protoc executable not found! Missing protobuf-compiler package?")
 
66
endif()
 
67
 
61
68
pkg_check_modules(MIRSERVER mirserver REQUIRED)
62
69
pkg_check_modules(MIRCOMMON mircommon REQUIRED)
63
70
pkg_check_modules(UBUNTU_PLATFORM_API ubuntu-platform-api REQUIRED)
65
72
add_subdirectory(src)
66
73
add_subdirectory(data)
67
74
 
68
 
# TODO(tvoss, pitti): With the build system switched to cmake, we can now
69
 
# start adding unit- and integration tests for unity-mir.
70
75
add_subdirectory(tests)
71
76
 
72
77
# TODO(tvoss): Enable coverage reporting once we have tests in place.