From 98b2df6dccbe6f3019c4125ddd84dd89b325a062 Mon Sep 17 00:00:00 2001 From: kopla Date: Thu, 28 Jan 2010 11:52:16 +0000 Subject: [PATCH] Maemo build fix git-svn-id: file:///svnroot/qtrapids/trunk@72 42ac0dd5-4c8c-4c71-bb3e-ecdfe252ffda --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 38d7cf4..5ac910a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,16 @@ project(qtrapids) cmake_minimum_required(VERSION 2.6) set(CMAKE_VERBOSE_MAKEFILE ON) +# Check if we are building under scratchbox and link with QtMaemo5 only in that case. +# Thus, we maintain desktop build-ability also +set (SCRATCHBOX_UNAME $ENV{SBOX_UNAME_MACHINE}) + +if (SCRATCHBOX_UNAME) + MESSAGE("Configuring for building under Scratchbox..") + SET(CMAKE_INSTALL_PREFIX /usr) + SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) +endif (SCRATCHBOX_UNAME) + add_definitions(-Wall -g) find_package(Qt4 REQUIRED) -- 1.7.9.5