X-Git-Url: http://git.maemo.org/git/?p=qtrapids;a=blobdiff_plain;f=CMakeLists.txt;h=5ac910a86b9d29ab8ffe1f62cf3b6f9790f32049;hp=38d7cf467d63ac49c119a8e633522b2dddafb155;hb=1d97c0a567b80cf9fc67791669debfe3aa9c4c84;hpb=54c5fa6b3ec6b586daf42099b0e007b70eccf446;ds=sidebyside 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)