~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2010-07-23 20:08:00 UTC
  • mfrom: (5.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100723200800-fh72fo2fhlxb16ud
Tags: 4:4.0.1-1
* New upstream release.
* Add localization packages: Finnish (fi), Dutch (nl), Slovenian (sl) and
  Thai (th).
* Update debian/control:
  - bump Standards-Version to 3.9.0 (no changes needed).
  - bump kdevplatform-dev and kdebase-workspace-dev build dependency version.
  - add shared-mime-info build dependency.
  - comment turkish localization package, not shipped in this release.
* Update debian/rules: remove workaround for FindKDE4Internal.cmake default
  rpath value, fixed in kdelibs5-dev 4.4.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
set( KDEVELOP_VERSION_MAJOR 4 )
8
8
set( KDEVELOP_VERSION_MINOR 0 )
9
 
set( KDEVELOP_VERSION_PATCH 0 )
 
9
set( KDEVELOP_VERSION_PATCH 1 )
10
10
 
11
11
set(KDE_MIN_VERSION "4.3.0")
12
12
find_package(KDE4 4.3.0 REQUIRED)
16
16
include (MacroLibrary)
17
17
include (MacroOptionalAddSubdirectory)
18
18
 
19
 
if( extragear-sdk_SOURCE_DIR )
20
 
    if ( ${extragear-sdk_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR}  )
21
 
        set( KDEVPLATFORM_FOUND TRUE )
22
 
        include_directories( ${CMAKE_SOURCE_DIR}/kdevplatform ${CMAKE_SOURCE_DIR}/kdevplatform/plugins )
23
 
        set( KDEVPLATFORM_INTERFACES_LIBRARIES kdevplatforminterfaces )
24
 
        set( KDEVPLATFORM_SHELL_LIBRARIES kdevplatformshell )
25
 
        set( KDEVPLATFORM_TESTS_LIBRARIES kdevplatformtests )
26
 
        set( KDEVPLATFORM_UTIL_LIBRARIES kdevplatformutil )
27
 
        set( KDEVPLATFORM_PROJECT_LIBRARIES kdevplatformproject )
28
 
        set( KDEVPLATFORM_OUTPUTVIEW_LIBRARIES kdevplatformoutputview )
29
 
        set( KDEVPLATFORM_LANGUAGE_LIBRARIES kdevplatformlanguage )
30
 
        set( KDEVPLATFORM_VCS_LIBRARIES kdevplatformvcs )
31
 
        set( KDEVPLATFORM_DEBUGGER_LIBRARIES kdevplatformdebugger )
32
 
        set( KDEVPLATFORM_SUBLIME_LIBRARIES sublime )
33
 
        include( ${CMAKE_SOURCE_DIR}/kdevplatform/cmake/modules/KDevPlatformMacros.cmake )
34
 
    endif ( ${extragear-sdk_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR}  )
35
 
endif( extragear-sdk_SOURCE_DIR )
36
 
 
37
 
if( NOT KDEVPLATFORM_FOUND )
38
 
 
39
 
    find_package(KDevPlatform 1.0.0 REQUIRED)
40
 
    include_directories(${KDEVPLATFORM_INCLUDE_DIR})
41
 
 
42
 
endif( NOT KDEVPLATFORM_FOUND )
 
19
# Make sure that we're having RPATH on our installed libs, else using kdevelop
 
20
# from prefixes like $HOME/kdevelop breaks
 
21
# Code taken from FindKDE4Internal.cmake from KDE 4.5
 
22
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${LIB_INSTALL_DIR}"
 
23
  _isSystemLibDir)
 
24
if("${_isSystemLibDir}" STREQUAL "-1")
 
25
 set(CMAKE_INSTALL_RPATH "${LIB_INSTALL_DIR}")
 
26
endif("${_isSystemLibDir}" STREQUAL "-1")
 
27
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
 
28
 
 
29
find_package(KDevPlatform 1.0.0 REQUIRED)
 
30
include_directories(${KDEVPLATFORM_INCLUDE_DIR})
43
31
 
44
32
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DHAVE_CONFIG_H=1)
45
33
 
63
51
 
64
52
macro_display_feature_log()
65
53
 
66
 
find_package(Msgfmt REQUIRED)
67
 
find_package(Gettext REQUIRED)
68
 
add_subdirectory( po )
 
54
 
 
55
include(MacroOptionalAddSubdirectory)
 
56
macro_optional_add_subdirectory( po )