Added build script of Debian
[qtrapids] / CMakeLists.txt
1 project(qtrapids)
2 cmake_minimum_required(VERSION 2.6)
3 set(CMAKE_VERBOSE_MAKEFILE ON)
4
5 # Check if we are building under scratchbox and link with QtMaemo5 only in that case.
6 # Thus, we maintain desktop build-ability also
7 set (SCRATCHBOX_UNAME $ENV{SBOX_UNAME_MACHINE})
8
9 if (SCRATCHBOX_UNAME)
10         MESSAGE("Configuring for building under Scratchbox..")
11         SET(CMAKE_INSTALL_PREFIX /usr)
12         SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
13 endif (SCRATCHBOX_UNAME)
14
15 add_definitions(-Wall -g)
16
17 find_package(Qt4 REQUIRED)
18
19 add_subdirectory(./dbus)
20 add_subdirectory(./src/client)
21 add_subdirectory(./src/server)
22 #add_subdirectory(./src/utest)
23